Beispiel #1
0
 public static CheckpointState Create()
 {
     return(new CheckpointState
     {
         Id = new Uri("bing://testuri/"),
         userState = FlatClass.Create()
     });
 }
Beispiel #2
0
        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()));
        }
Beispiel #3
0
        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)
            });
        }
Beispiel #4
0
 private InheritedCheckpointState(double anotherState, int anotherId, Uri id, FlatClass userState)
     : base(id, userState)
 {
     AnotherId     = anotherId;
     _anotherState = anotherState;
 }
Beispiel #5
0
 protected CheckpointState(Uri id, FlatClass userState)
 {
     Id             = id;
     this.userState = userState;
 }