Exemple #1
0
 public override void Prepare()
 {
     Name   = "ChicagoStyle Pepperoni Pizza";
     Dough  = ingredientFactory.CreateDough();
     Sauce  = ingredientFactory.CreateSauce();
     Cheese = ingredientFactory.CreateCheese();
 }
Exemple #2
0
 public override void Preparation()
 {
     System.Console.WriteLine($"Przygotowanie: {GetName()}");
     this.cake   = _pizzaIngredientsFactory.CreateCake();
     this.sauce  = _pizzaIngredientsFactory.CreateSauce();
     this.cheese = _pizzaIngredientsFactory.CreateCheese();
 }
Exemple #3
0
 public override void Prepare()
 {
     Name   = "NYStyle Veggie Pizza";
     Dough  = ingredientFactory.CreateDough();
     Sauce  = ingredientFactory.CreateSauce();
     Cheese = ingredientFactory.CreateCheese();
 }