Пример #1
0
 public Buyer()
 {
     NameBuyer = NameGenerator.NameForBuyer();
     Bag       = new List <FoodStuff>(NameGenerator.RandomInt(1, 50));
     Money     = NameGenerator.RandomInt(100, 1000);
     Basket    = new List <FoodStuff>();
 }
Пример #2
0
 public FoodStuff()
 {
     NameProduct = NameGenerator.Product();
     Callories   = NameGenerator.RandomInt(1, 100);
     Price       = NameGenerator.RandomInt(1, 100);
 }
Пример #3
0
 public Cell()
 {
     ProductInCell   = new FoodStuff();
     CountFoodInCell = NameGenerator.RandomInt(1, 10);
 }