コード例 #1
0
        //public ChicagoMexicanPizza()
        //{
        //    Name = "Chicago Style Mexican Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");
        //}

        public ChicagoMexicanPizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #2
0
        //public ChicagoMarghereitaPizza()
        //{
        //    Name = "Chicago Marghereita Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");

        //}

        public ChicagoMarghereitaPizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #3
0
        //public NYMexicanPizza()
        //{
        //    Name = "NY Style Mexican Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");
        //}

        public NYMexicanPizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #4
0
        //public NYMarghereitaPizza()
        //{
        //    Name = "NY Style Marghereita Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");
        //}

        public NYMarghereitaPizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #5
0
        //public ChicagoIndianPizza()
        //{
        //    Name = "Chicago Style Indian Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");
        //}

        public ChicagoIndianPizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #6
0
        //public NYIndianPizza()
        //{
        //    Name = "NY Style India Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");
        //}

        public NYIndianPizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #7
0
        //public ChicagoCheesePizza()
        //{
        //    Name = "Chicago Style Deep Dish Cheese Pizza";
        //    Dough = "“Extra Thick Crust Dough";
        //    Sauce = "Plum Tomato Sauce";
        //    toppings.Add("Shredded Mozzarella Cheese");
        //}

        public ChicagoCheesePizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }
コード例 #8
0
        //Factory Method
        //public NYCheesePizza()
        //{
        //    Name = "NY Style Sauce and Cheese Pizza";
        //    Dough = "Thin Crust Dough";
        //    Sauce = "Marinara Sauce";
        //    toppings.Add("Grated Reggiano Cheese");
        //}

        public NYCheesePizza(IPizzaIngredient pizzaIngredient)
        {
            _pizzaIngredient = pizzaIngredient;
        }