Beispiel #1
0
        static void Main(string[] args)
        {
            OwnerGenerator ownerGenerator = new OwnerGenerator();
            string         ownerTable     = ownerGenerator.GenerateTable(100);

            Console.WriteLine("Owner table generated");

            CompanyGenerator companyGenerator = new CompanyGenerator(ownerGenerator.Passports);

            string companyTable = companyGenerator.GenerateTable(100);

            string productTable = new ChemGenerator(companyGenerator).GenerateTable(100);

            File.WriteAllText("owners.txt", ownerTable);
            File.WriteAllText("companies.txt", companyTable);
            File.WriteAllText("products.txt", productTable);

            Console.ReadKey();
        }
Beispiel #2
0
 public ChemGenerator(CompanyGenerator companyGenerator)
 {
     availableCompanies = companyGenerator.GeneratedCompanyNames;
 }