예제 #1
0
 public void Client2()
 {
     Dough Dough = new Dough();
     Sauce Sauce = new Sauce("Tomato");
     Topping Peppers = new Topping("Green Peppers");
     Cheese Mozzarella = new Cheese("Mozzarella");
     PizzaFacade PizzaFacade = new Facade.PizzaFacade(Dough, Sauce, Mozzarella, Peppers);
     PizzaFacade.MakePizza();
     Console.ReadKey();
 }
예제 #2
0
 public void Client1()
 {
     Dough Dough = new Dough();
     Sauce Sauce = new Sauce("Tomato");
     Topping Mushroom = new Topping("Mushrooms");
     Cheese Mozzarella = new Cheese("Mozzarella");
     PizzaFacade PizzaFacade = new Facade.PizzaFacade(Dough, Sauce, Mozzarella, Mushroom);
     PizzaFacade.MakePizza();
     Console.ReadKey();
 }