Beispiel #1
0
 public void Setup()
 {
     dummy  = new SomeDummy();
     other1 = new OtherDummy {
         StringProperty = "A"
     };
     other2 = new OtherDummy {
         StringProperty = "B"
     };
     other3 = new OtherDummy {
         StringProperty = "A"
     };
     dummyOther1 = new SomeOther {
         Some = dummy, Other = other1
     };
     dummyOther2 = new SomeOther {
         Some = dummy, Other = other2
     };
     dummyOther3 = new SomeOther {
         Some = dummy, Other = other3
     };
     dummy.ManyNavigation.Add(dummyOther1);
     dummy.ManyNavigation.Add(dummyOther2);
     dummy.ManyNavigation.Add(dummyOther3);
     other1.ManyNavigation.Add(dummyOther1);
     other2.ManyNavigation.Add(dummyOther2);
     other3.ManyNavigation.Add(dummyOther3);
 }
 public void Setup()
 {
     dummy = new SomeDummy();
 }