Beispiel #1
0
        static void Main(string[] args)
        {
            Meal A = MealBuilder.PrepareSetMenuA();
            Meal B = MealBuilder.PrepareSetMenuB();

            Console.WriteLine("SetMenu A costs :" + A.Cost());
            A.Show();
            Console.WriteLine("SetMenu B costs :" + B.Cost());
            B.Show();
        }
Beispiel #2
0
        private static void Main(string[] args)
        {
            MealBuilder mealBuilder = new MealBuilder();
            var         vegMeal     = mealBuilder.prepareVegMeal();

            vegMeal.showItems();

            var nonMeal = mealBuilder.prepareNonVegMeal();

            nonMeal.showItems();

            Console.ReadKey();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            MealBuilder mealBuilder = new MealBuilder();
            Meal        vegMeal     = mealBuilder.prepareVegMeal();

            Console.WriteLine("Veg Meal");
            vegMeal.showItems();
            Console.WriteLine("Total Cost: " + vegMeal.getCost());

            Meal chickenMeal = mealBuilder.prepareChickenMeal();

            Console.WriteLine("Chicken Meal");
            chickenMeal.showItems();
            Console.WriteLine("Total Cost: " + chickenMeal.getCost());
        }
        static void Main(string[] args)
        {
            MealBuilder mealBuilder = new MealBuilder();

            Meal vegMeal = mealBuilder.PrepareVegMeal();

            Console.WriteLine("Veg Meal");
            vegMeal.ShowItems();
            Console.WriteLine("Total Cost: " + vegMeal.GetCost());

            Meal nonVegMeal = mealBuilder.PrepareNonVegMeal();

            Console.WriteLine("\n\nNon-Veg Meal");
            nonVegMeal.ShowItems();
            Console.WriteLine("Total Cost: " + nonVegMeal.GetCost());
        }
Beispiel #5
0
        static void Main(string[] args)
        {
            MealBuilder mealBuilder = new MealBuilder();

            Meal vegMeal = mealBuilder.PrepareVegMeal();

            vegMeal.ShowItems();

            Console.WriteLine();

            Meal nonVegMeal = mealBuilder.PrepareNonVegMeal();

            vegMeal.ShowItems();

            Console.ReadKey();
        }
Beispiel #6
0
        static void Main(string[] args)
        {
            MealBuilder builder = new MealBuilder();
            //burgerMeal
            Meal burgerMeal = builder.PrepareBurgerMeal();

            Console.WriteLine("BurgerMeal: ");
            burgerMeal.ShowItems();
            Console.WriteLine($"Costs: {burgerMeal.GetCosts().ToString("C")}");
            //ChickenMEal
            Meal chickenMeal = builder.PrepareChickenMeal();

            Console.WriteLine("ChickenMeal: ");
            chickenMeal.ShowItems();
            Console.WriteLine("Costs: {0}", chickenMeal.GetCosts().ToString("C"));
            //zorgen dat console niet direct sluit
            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            MealBuilder mealBuilder = new MealBuilder();

            Meal vegMeal = mealBuilder.PrepareVegMeal();

            Console.WriteLine("***** Veg meal *****");
            vegMeal.ShowItems();
            Console.WriteLine(String.Format("Total price = {0}", vegMeal.GetCost()));
            Console.ReadLine();

            Meal nonVegMeal = mealBuilder.PrepareNonVegMeal();

            Console.WriteLine("***** Non veg meal *****");
            nonVegMeal.ShowItems();
            Console.WriteLine(String.Format("Total price = {0}", nonVegMeal.GetCost()));
            Console.ReadLine();
        }
Beispiel #8
0
        public static void Main(String[] args)
        {
            MealBuilder mealBuilder = new MealBuilder();

            Meal vegMeal = mealBuilder.prepareVegMeal();

            Console.WriteLine("Veg Meal");
            vegMeal.showItems();
            Console.WriteLine("Total Cost: " + vegMeal.getCost());

            Meal nonVegMeal = mealBuilder.prepareNonVegMeal();

            Console.WriteLine("\n\nNon-Veg Meal");
            nonVegMeal.showItems();
            Console.WriteLine("Total Cost: " + nonVegMeal.getCost());

            Console.ReadKey();
        }
Beispiel #9
0
        /// <summary>
        /// The main.
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        public static void Main(string[] args)
        {
            var mealBuilder = new MealBuilder();

            // create an object of veg meal
            var vegMeal = mealBuilder.PrepareVegMeal();

            Console.WriteLine("Veg Meal...");
            vegMeal.ShowItems();
            Console.WriteLine($"Total Cost: {vegMeal.GetCost()}\n");

            // create an object of non veg meal
            var nonVegMeal = mealBuilder.PrepareNonVegMeal();

            Console.WriteLine("Non Veg Meal...");
            nonVegMeal.ShowItems();
            Console.WriteLine($"Total Cost: {nonVegMeal.GetCost()}\n");
        }