Example #1
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");
        }
Example #2
0
 public Kebab(List <Ingredient> ingredients, Sauce sauce)
 {
     this.Ingredients = ingredients;
     this.Sauce       = sauce;
 }