예제 #1
0
        public void TakeOrder(string[] ingredients, string drink, double price)
        {
            var pizza = PizzaFactory.MakePizza(ingredients);

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

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