public void Client2()
        {
            Dough       dough      = new Dough();
            Sauce       sauce      = new Sauce("Tomato");
            Topping     greenPep   = new Topping("Green Peppers");
            Cheese      mozzarella = new Cheese("Mozzarella");
            Oven        oven       = new Oven();
            PizzaFacade pf         = new PizzaFacade(dough, sauce, mozzarella, greenPep);

            pf.MakePizza();
        }
        public void Client1()
        {
            Dough       dough      = new Dough();
            Sauce       sauce      = new Sauce("Tomato");
            Topping     mushroom   = new Topping("Mushrooms");
            Cheese      mozzarella = new Cheese("Mozzarella");
            Oven        oven       = new Oven();
            PizzaFacade pf         = new PizzaFacade(dough, sauce, mushroom, mozzarella);

            pf.MakePizza();
        }
Esempio n. 3
0
        public static void CallFacadePattern()
        {
            Dough        dough        = new Dough();
            Sauce        sauce        = new Sauce("Marinara");
            Cheese       cheese       = new Cheese("Pollyo");
            PizzaTopping pizzaTopping = new PizzaTopping("Green Pepper");

            PizzaFacade pf = new PizzaFacade(dough, cheese, sauce, pizzaTopping);

            pf.MakePizza();
            Console.WriteLine("Pizza Made");
        }
Esempio n. 4
0
        private static void FacadePatternPizza()
        {
            Dough   dough   = new Dough();
            Sauce   sauce   = new Sauce("Tomatto");
            Topping topping = new Topping("Green Pepper");
            Cheese  cheese  = new Cheese("white");
            Oven    oven    = new Oven(5);

            PizzaFacade pizza = new PizzaFacade(dough, sauce, topping, cheese, oven);

            pizza.MakePizza();
        }
Esempio n. 5
0
        public static void Client2()
        {
            Console.WriteLine(" --- Client2's Pizza --- ");
            PizzaFacade pf =
                new PizzaFacade(
                    "Normal dough",
                    "Tomatoe sauce",
                    "Green peppers",
                    "Mozzarella");

            pf.MakePizza();
        }
Esempio n. 6
0
        public static void Client1()
        {
            Console.WriteLine(" --- Client1's Pizza --- ");
            PizzaFacade pf =
                new PizzaFacade(
                    "Normal dough",
                    "Tomatoe sauce",
                    "Mushrooms",
                    "Mozzarella");

            pf.MakePizza();
        }