コード例 #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();
        }