Exemplo n.º 1
0
        public override object CreateRandomObject()
        {
            hierarchy3a item = new hierarchy3a();
            Random      rand = new Random(DateTime.Now.Millisecond);

            item.numfield1  = 0 - rand.Next(1000000);
            item.textfield1 = "text1" + item.numfield1.ToString();
            item.textfield2 = "text2" + item.numfield1.ToString();
            item.textfield3 = "text3" + item.numfield1.ToString();
            item.numfield2  = 2;
            item.numfield3  = 3;
            item.uid        = Guid.NewGuid();
            return(item);
        }
Exemplo n.º 2
0
 public override object CreateRandomObject()
 {
     hierarchy3a item = new hierarchy3a();
     Random rand = new Random(DateTime.Now.Millisecond);
     item.numfield1 = 0 - rand.Next(1000000);
     item.textfield1 = "text1" + item.numfield1.ToString();
     item.textfield2 = "text2" + item.numfield1.ToString();
     item.textfield3 = "text3" + item.numfield1.ToString();
     item.numfield2 = 2;
     item.numfield3 = 3;
     item.uid = Guid.NewGuid();
     return item;
 }