Example #1
0
        //private readonly SimplePizzaFactory simplePizzaFactory;

        //public PizzaStore(SimplePizzaFactory simplePizzaFactory)
        //{
        //    this.simplePizzaFactory = simplePizzaFactory;
        //}

        public PizzaBase OrderPizza(string type)
        {
            PizzaBase pizza = CreatePizza(type);

            pizza.Prepare();
            pizza.bake();
            pizza.cut();
            pizza.box();

            return(pizza);
        }