private static void AddProducts(Company store, int numOfProductsToAdd = 500000) { for (int i = 0; i < numOfProductsToAdd; i++) { string title = Rnd.Next(int.MaxValue).ToString(); string vendor = title + i; decimal price = Rnd.Next(20000) / 100; decimal barcode = Rnd.Next(1000000, int.MaxValue) * 2; store.AddProduct(new Article(title, vendor, price, barcode)); } }