public PizzaMan(PizzaOven pizzaOven) { PizzaOven = pizzaOven; PizzaOven.AddObserver(this); PizzaFactory = new PizzaFactory(); DayTime = TimeOfDay.Night; }
public void TakeOrder(string[] ingredients, string drink, double price) { var pizza = PizzaFactory.MakePizza(ingredients); PizzaOven.PreparePizza(new PizzaToMenuAdapter(drink, price, pizza)); }
public void TakeOrder(string[] ingredients) { var pizza = PizzaFactory.MakePizza(ingredients); PizzaOven.PreparePizza(new PizzaToMenuAdapter(pizza)); }