예제 #1
0
 public PizzaMan(PizzaOven pizzaOven)
 {
     PizzaOven = pizzaOven;
     PizzaOven.AddObserver(this);
     PizzaFactory = new PizzaFactory();
     DayTime      = TimeOfDay.Night;
 }
예제 #2
0
        public void TakeOrder(string[] ingredients, string drink, double price)
        {
            var pizza = PizzaFactory.MakePizza(ingredients);

            PizzaOven.PreparePizza(new PizzaToMenuAdapter(drink, price, pizza));
        }
예제 #3
0
        public void TakeOrder(string[] ingredients)
        {
            var pizza = PizzaFactory.MakePizza(ingredients);

            PizzaOven.PreparePizza(new PizzaToMenuAdapter(pizza));
        }