/// <summary>
 /// Generate Demo2
 /// </summary>
 /// <param name="numberOfRows"></param>
 public static void GenerateDemo2(int numberOfRows)
 {
     generatedCompany = GenerateCompany();
     for (int i = 0; i < numberOfRows; i++)
     {
         Product product = GenerateProduct(null);
         products.Add(product);
         // create prices (each product have 1 - 10% of number of rows prices
         int tmp = rnd.Next(numberOfRows, (int)(numberOfRows * 1.1));
         for (int j = 0; j < tmp; j++)
         {
             Price price = GeneratePrice(product);
             product.Prices.Add(price);
         }
     }
 }
 private static Company GenerateCompany()
 {
     Company newCompany = new Company();
     newCompany.Description = GenerateDescription();
     newCompany.Name = GenerateCompanyName();
     newCompany.Id = lastCompanyId++;
     newCompany.Logo = GenerateLogo();
     return newCompany;
 }
 /// <summary>
 /// Generate demo 1
 /// </summary>
 public static void GenerateDemo1(int numberOfRows)
 {
     generatedCompany = GenerateCompany();
     int tmp = rnd.Next(numberOfRows, (int)(numberOfRows * 1.1));
     for(int i = 0; i < tmp; i++)
     {
         Manufacturer man = GenerateManufacturer();
         manufacturers.Add(man);
         // create products
         for (int j = 0; j < numberOfRows; j++)
         {
             Product product = GenerateProduct(man);
             man.Products.Add(product);
         }
     }
 }