public OwnershipTestObject(Random rnd) { this.NestedObject = new ReferencedObject { TestProperty = rnd.Next().ToString() }; this.ObjectStore = new Dictionary <string, ReferencedObject>(); for (int i = rnd.Next(2, 4); i > 0; i--) { string name = rnd.Next().ToString(); this.ObjectStore.Add(name, new ReferencedObject { TestProperty = name }); } }
public IdentityTestObjectB(Random rnd) { this.StringField = rnd.Next().ToString(); this.Identity = new ReferencedObject(); }