Esempio n. 1
0
 internal override void Prepare()
 {
     Debug.WriteLine("Preparing " + name);
     dough     = ingredientFactory.CreateDough();
     sauce     = ingredientFactory.CreateSauce();
     cheese    = ingredientFactory.CreateCheese();
     veggies   = ingredientFactory.CreateVeggies();
     pepperoni = ingredientFactory.CreatePepperoni();
 }
Esempio n. 2
0
 public override void Prepare()
 {
     Console.WriteLine("Preparing {0}", Name);
     Dough     = pizzaIngredientFactory.CreateDough();
     Sauce     = pizzaIngredientFactory.CreateSauce();
     Cheese    = pizzaIngredientFactory.CreateCheese();
     Pepperoni = pizzaIngredientFactory.CreatePepperoni();
     Console.WriteLine("Ingredients: Dough: {0} - Sauce: {1} - Cheese: {2} - Pepperoni: {3}", Dough.ToString(), Sauce.ToString(), Cheese.ToString(), Pepperoni.ToString());
 }
Esempio n. 3
0
 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);

            Pepperoni = ingredientFactory.CreatePepperoni();
        }