public override void Prepare() { Dough = _ingredientFactory.CreateDough(); Sauce = _ingredientFactory.CreateSaurce(); Cheese = _ingredientFactory.CreateCheese(); Veggieses = _ingredientFactory.CreateVeggies(); Clam = _ingredientFactory.CreateClams(); Pepperoni = _ingredientFactory.CreatePepperoni(); }
public override void Prepare() { Console.WriteLine("Preparing " + Name); Dough = ingredientFactory.CreateDough(); Sauce = ingredientFactory.CreateSauce(); Cheese = ingredientFactory.CreateCheese(); Veggies = ingredientFactory.CreateVeggies(); Pepperoni = ingredientFactory.CreatePepperoni(); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}"); Dough = myPizzaIngredientFactory.CreateDough(); Sauce = myPizzaIngredientFactory.CreateSauce(); Cheese = myPizzaIngredientFactory.CreateCheese(); Veggies = myPizzaIngredientFactory.CreateVeggies(); Pepperoni = myPizzaIngredientFactory.CreatePepperoni(); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}"); dough = _ingredientFactory.CreateDough(); sauce = _ingredientFactory.CreateSauce(); cheese = _ingredientFactory.CreateCheese(); veggies = _ingredientFactory.CreateVeggies(); pepperoni = _ingredientFactory.CreatePepperoni(); }
public override void Prepare() { Console.WriteLine($"Preparing {GetType().Name}"); Dough = _pizzaIngredientFactory.CreateDough(); Clam = _pizzaIngredientFactory.CreateClam(); Cheese = _pizzaIngredientFactory.CreateCheese(); Veggies = _pizzaIngredientFactory.CreateVegetables(); Sauce = _pizzaIngredientFactory.CreateSauce(); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}"); Dough = factory.CreateDough(); Console.WriteLine($"Added {Dough.Name}"); Sauce = factory.CreateSauce(); Console.WriteLine($"Added {Sauce.Name}"); Cheese = factory.CreateCheese(); Console.WriteLine($"Added {Cheese.Name}"); }
public virtual void Prepare() { Console.WriteLine("Preparing: " + _name); _dough = _ingredientFactory.CreateDough(); _sauce = _ingredientFactory.CreateSauce(); _cheese = _ingredientFactory.CreateCheese(); _clams = _ingredientFactory.CreateClam(); _pepperoni = _ingredientFactory.CreatePepperoni(); _veggies = _ingredientFactory.CreateVeggies(); }
public override void Prepare() { Console.WriteLine("Preparing " + _name); _dough = _ingredientFactory.CreateDough(); Console.WriteLine("Tossing " + _dough); _sauce = _ingredientFactory.CreateSauce(); Console.WriteLine("Adding " + _sauce); _cheese = _ingredientFactory.CreateCheese(); Console.WriteLine("Adding " + _cheese); }
public override void Prepare() { Dough = _ingredientFactory.CreateDough(); Sauce = _ingredientFactory.CreateSauce(); Cheese = _ingredientFactory.CreateCheese(); Veggies = _ingredientFactory.CreateVeggies(); Console.WriteLine($"Preparing {Name} Pizza Using..."); Console.WriteLine($"Dough: {Dough}, Cheese: {Cheese}, Sauce: {Sauce}, Veggies : {string.Join(",", Veggies.Select(f => f.ToString()))}"); }
public override void Prepare() { Dough = _ingredientFactory.CreateDough(); Clam = _ingredientFactory.CreateClam(); Sauce = _ingredientFactory.CreateSauce(); Cheese = _ingredientFactory.CreateCheese(); Console.WriteLine($"Preparing {Name} Pizza Using..."); Console.WriteLine($"Dough: {Dough}, Cheese: {Cheese}, Sauce: {Sauce}, Clam : {Clam}"); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}"); Dough = _ingredientFactory.CreateDough(); Sauce = _ingredientFactory.CreateSauce(); Cheese = _ingredientFactory.CreateCheese(); Clam = _ingredientFactory.CreateClams(); Veggies = _ingredientFactory.CreateVeggies(); }
//Метод готовит пиццу с сыром. Когда ему нужны игредиенты, он запрашиват у фабрики public override void Prepare() { Console.WriteLine($"Подготовка {name}"); dough = IngredientFactory.CreateDough(); sauce = IngredientFactory.CreateSauce(); cheese = IngredientFactory.CreateCheese(); //Если будет Нбюй-Йоркская фабрика, мидии свежие, если чикагская - мороженные clam = IngredientFactory.CreateClam(); }
public override void Prepare() { Console.WriteLine($"Preparing {_name}"); _dough = _ingredientFactory.CreateDough(); _source = _ingredientFactory.CreateSaurce(); _cheese = _ingredientFactory.CreateCheese(); Console.WriteLine($"Tossing {_dough} dough"); Console.WriteLine($"Adding {_source} source"); Console.WriteLine($"Adding {_cheese} cheese"); }
public override void Prepare() { Console.WriteLine("Preparing... {0}", Name); Dough = _pizzaIngredientFactory.CreateDough(); Sauce = _pizzaIngredientFactory.CreateSauce(); Veggieses = _pizzaIngredientFactory.CreateVeggieses(); Cheese = _pizzaIngredientFactory.CreateCheese(); Pepperoni = _pizzaIngredientFactory.CreatePepperoni(); Clam = _pizzaIngredientFactory.CreateClam(); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}..."); Dough = _ingredientFactory.CreateDough(); Console.WriteLine($"Creating {Dough}..."); Cheese = _ingredientFactory.CreateCheese(); Console.WriteLine($"Adding {Cheese}..."); Sauce = _ingredientFactory.CreateSauce(); Console.WriteLine($"Adding {Sauce}..."); Veggies = _ingredientFactory.CreateVeggies(); Console.WriteLine($"Adding Veggies... {string.Join(",",Veggies.Select(f => f.ToString()))}"); }
public override void Prepare() { Console.WriteLine($"Preparing: {Name}"); Dough = _pizzaIngredientFactory.CreateDough(); Sauce = _pizzaIngredientFactory.CreateSauce(); Clams = _pizzaIngredientFactory.CreateClams(); Cheese = _pizzaIngredientFactory.CreateCheese(); Console.WriteLine($" {Dough.Name}"); Console.WriteLine($" {Sauce.Name}"); Console.WriteLine($" {Clams.Name}"); Console.WriteLine($" {Cheese.Name}"); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}..."); Dough = _ingredientFactory.CreateDough(); Console.WriteLine($"Creating {Dough}..."); Clam = _ingredientFactory.CreateClam(); Console.WriteLine($"Adding {Clam}..."); Sauce = _ingredientFactory.CreateSauce(); Console.WriteLine($"Adding {Sauce}..."); Cheese = _ingredientFactory.CreateCheese(); Console.WriteLine($"Adding {Cheese}..."); }
public override void Prepare() { Debug.Log(string.Format(" * *** {0} 피자 준비중 *****", name)); //해당 Factory에서 정의한 재료들로 준비한다. dough = ingredientFactory.CreateDought(); sauce = ingredientFactory.CreateSauce(); cheese = ingredientFactory.CreateCheese(); Debug.Log(dough.ToString()); Debug.Log(sauce.ToString()); Debug.Log(cheese.ToString()); }
public override string Prepare() { dough = ingredientFactory.CreateDough(); sauce = ingredientFactory.CreateSauce(); cheese = ingredientFactory.CreateCheese(); StringBuilder sb = new StringBuilder(); sb.Append("Preparing " + Name + "\n"); sb.Append(dough.toString() + "\n"); sb.Append(sauce.toString() + "\n"); sb.Append(cheese.toString()); return(sb.ToString()); }
public override void Prepare() { this.dough = _ingredientFactory.CreateDough(); this.sauce = _ingredientFactory.CreateSauce(); this.cheese = _ingredientFactory.CreateCheese(); }
public override void Prepare() { Console.WriteLine($"Preparing {Name}"); Cheese = _pizzaIngredientFactory.CreateCheese(); Sauce = _pizzaIngredientFactory.CreateSauce(); }