Пример #1
0
 public override void Prepare()
 {
     Name   = "ChicagoStyle Pepperoni Pizza";
     Dough  = ingredientFactory.CreateDough();
     Sauce  = ingredientFactory.CreateSauce();
     Cheese = ingredientFactory.CreateCheese();
 }
Пример #2
0
 public override void Prepare()
 {
     Name   = "NYStyle Veggie Pizza";
     Dough  = ingredientFactory.CreateDough();
     Sauce  = ingredientFactory.CreateSauce();
     Cheese = ingredientFactory.CreateCheese();
 }
 public ChicagoVeggiePiza(IPizzaIngredientsFactory ingredientsFactory)
 {
     _name = "Chicago style veggie pizza";
     _ingredientsFactory = ingredientsFactory;
     _dough = _ingredientsFactory.CreateDough();
     _souce = ingredientsFactory.CreateSauce();
     _toppings = ingredientsFactory.CreateVeggies();
 }
 public NyPepperoniPizza2(IPizzaIngredientsFactory ingredientsFactory)
 {
     _name = "Ny pepperoni pizza ";
     _ingredientsFactory = ingredientsFactory;
     _dough = _ingredientsFactory.CreateDough();
     _souce = ingredientsFactory.CreateSauce();
     _toppings = ingredientsFactory.CreatePepperoni();
 }
 public NyVeggiePizza2(IPizzaIngredientsFactory ingredientsFactory)
 {
     _name = "Ny veggie pizza";
     _ingredientsFactory = ingredientsFactory;
     _dough = _ingredientsFactory.CreateDough();
     _souce = ingredientsFactory.CreateSauce();
     _toppings = ingredientsFactory.CreateVeggies();
 }