Beispiel #1
0
        static void Main(string[] args)
        {
            InternetStore Market1 = new InternetStore("Market1");
            Merchandise   merch1  = new Merchandise(23, "Coffee", 58.00, 56784904, "Masha", Market1);

            Market1.AddProduct(merch1);
            Merchandise merch2 = new Merchandise(10, "Tea", 29.99, 98564901, "Masha", Market1);

            Market1.AddProduct(merch2);
            Klient klient1 = new Klient("Ivan Petrovich", 120, Market1);

            klient1.AddOrder(Market1);
            merch1.FromOrderToSale(Market1);
            klient1.AddOrder(Market1);
            merch1.FromOrderToSale(Market1);
            Console.ReadKey();
        }
 public void RegistrationSale(Merchandise merchandise)
 {
     AllSales.Add(merchandise);
 }
 public void AddProduct(Merchandise product)
 {
     AllProducts.Add(product);
 }
Beispiel #4
0
 static void Main(string[] args)
 {
     InternetStore Market1 = new InternetStore("Market1");
     Merchandise   merch1  = new Merchandise("Coffee", 58.00, 56784904, "Masha");
 }