Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var paymentOption = new PaymentOption();

            DrinkLogic.DisplayDrinks();
            FoodLogic.DisplayFoods();
            var customer1        = new UserType("Ben", 2);
            var UserI            = new UserInterfaceLogic(customer1);
            var items            = UserI.BuyItems();
            CalculationLogic cal = new CalculationLogic(items, customer1);

            Console.WriteLine("Your total cost is :" + cal.CalculateFinalCost());

            StoreLogic.CheckQuantity(4);
            paymentOption.PayOption(cal.CalculateFinalCost());


            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            StoreLogic Makro = new StoreLogic();

            Supplier ProductMart = new Supplier("ProductMart", "Pinetown");

            //Customer customervarun = new Customer("Varun", CustomerType.Bulk);

            Drink drinkitem = new Drink("Heineken", 10, DrinkType.Alcholic);

            //Food fooditem = new Food("BarOneCake", 8, 0.15F, FoodType.Persishable);

            Makro.ProcessSupplyOrder(ProductMart, drinkitem, 5);

            Makro.OpenStore();

            //Makro.ProcessSale(customervarun, drinkitem, 2);

            //Makro.ProcessSupplyOrder(ProductMart, fooditem, 2);

            Console.ReadKey();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            var Shopright    = new StoreLogic();
            var sellingLogic = new SellingLogic();
            var Lungelo      = new Supplier();
            var product1     = new Drink("Dragon", 5, 0.1M, DrinkTypes.NonAlcoholic);
            var prodBought1  = new Drink("Dragon", 5, 0.1M, DrinkTypes.NonAlcoholic);
            var customer1    = new Customer("Lungelo", CustomerTypes.Bulk, PaymentMethods.Cash);



            Shopright.ProcessSupplierOrder(Lungelo, product1, 5);
            Console.WriteLine();
            Shopright.ProcessSale(customer1, prodBought1, 2);

            Console.WriteLine();
            sellingLogic.ProcessPayment(prodBought1, customer1, 1100, PaymentMethods.Cash);

            Console.WriteLine();
            sellingLogic.OpenSTore();

            //sellingLogic.EnterCustomerInfo();
            Console.ReadKey();
        }