Ejemplo n.º 1
0
        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
                });
            }
        }
Ejemplo n.º 2
0
		public IdentityTestObjectB(Random rnd)
		{
			this.StringField = rnd.Next().ToString();
			this.Identity = new ReferencedObject();
		}
Ejemplo n.º 3
0
 public IdentityTestObjectB(Random rnd)
 {
     this.StringField = rnd.Next().ToString();
     this.Identity    = new ReferencedObject();
 }