public static CheckpointState Create() { return(new CheckpointState { Id = new Uri("bing://testuri/"), userState = FlatClass.Create() }); }
public static InheritedCheckpointState Create(int seed = 13) { var r = new Random(seed); return(new InheritedCheckpointState( r.NextDouble(), r.Next(100), new Uri("bing://test"), FlatClass.Create())); }
public static NestedClass Create(int seed = 13) { var r = new Random(seed); return(new NestedClass() { NotSerializable = r.Next(), Serializable = r.Next(), TypeFlat = FlatClass.Create(seed) }); }
private InheritedCheckpointState(double anotherState, int anotherId, Uri id, FlatClass userState) : base(id, userState) { AnotherId = anotherId; _anotherState = anotherState; }
protected CheckpointState(Uri id, FlatClass userState) { Id = id; this.userState = userState; }