示例#1
0
 public override void prepare()
 {
     Console.WriteLine("Preparing " + name);
     dough   = ingredientFactory.CreateDough();
     sauce   = ingredientFactory.CreateSauce();
     cheese  = ingredientFactory.CreateCheese();
     veggies = ingredientFactory.CreateVeggies();
 }
 internal override void Prepare()
 {
     Debug.WriteLine("Preparing " + name);
     dough   = ingredientFactory.CreateDough();
     sauce   = ingredientFactory.CreateSauce();
     cheese  = ingredientFactory.CreateCheese();
     veggies = ingredientFactory.CreateVeggies();
 }
示例#3
0
 public override void Prepare()
 {
     Console.WriteLine("Preparing {0}", Name);
     Dough   = pizzaIngredientFactory.CreateDough();
     Sauce   = pizzaIngredientFactory.CreateSauce();
     Cheese  = pizzaIngredientFactory.CreateCheese();
     Veggies = pizzaIngredientFactory.CreateVeggies();
     Clam    = pizzaIngredientFactory.CreateClam();
     Console.WriteLine("Ingredients: Dough: {0} - Sauce: {1} - Cheese: {2} - Clam: {3}", Dough.ToString(), Sauce.ToString(), Cheese.ToString(), Clam.ToString());
 }
        public override void Prepare()
        {
            Console.WriteLine("Preparing: " + Name);

            Veggies = ingredientFactory.CreateVeggies();
        }