Esempio n. 1
0
        public ISandwich OrderSandwich(IList <string> ingredients)
        {
            ISandwich pizza = CreateSandwich(ingredients);

            pizza.Bake();
            pizza.Cut();
            pizza.Box();
            return(pizza);
        }
        public ISandwich OrderSandwich(IList <string> ingredients)
        {
            ISandwich sandwich = _factory.CreateSandwich(ingredients);

            sandwich.Bake();
            sandwich.Cut();
            sandwich.Box();
            return(sandwich);
        }