示例#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));
        }