Exemplo n.º 1
0
 private static void AddProducts(Store store, int numOfProductsToAdd = 500000)
 {
     for (int i = 0; i < numOfProductsToAdd; i++)
     {
         string title = rnd.Next(int.MaxValue).ToString();
         decimal price = rnd.Next(20000) / 100;
         store.AddProduct(new Product(title, price));
     }
 }
 private static void AddProducts(Store store, int numOfProductsToAdd = 500000)
 {
     for (int i = 0; i < numOfProductsToAdd; i++)
     {
         string  title = rnd.Next(int.MaxValue).ToString();
         decimal price = rnd.Next(20000) / 100;
         store.AddProduct(new Product(title, price));
     }
 }