Table of Contents

Class AppStateReset

Namespace
CMS.Tests
Assembly
CMS.Tests.dll

Provides support for reset of application state

public class AppStateReset
Inheritance
object
AppStateReset
Extension Methods

Constructors

AppStateReset()

public AppStateReset()

Methods

GetFieldState(Type, object)

Gets the current field state of the given type and object instance

public static List<AppStateReset.FieldState> GetFieldState(Type type, object instance)

Parameters

type Type

Type

instance object

Instance

Returns

List<AppStateReset.FieldState>

RestoreFieldState(object, IEnumerable<FieldState>)

Restores the field state for the given object

public static void RestoreFieldState(object instance, IEnumerable<AppStateReset.FieldState> fieldStates)

Parameters

instance object

Object instance

fieldStates IEnumerable<AppStateReset.FieldState>

Field states returned earlier by GetFieldState(Type, object)