internal override void Prepare()
 {
     Debug.WriteLine("Preparing " + name);
     dough  = ingredientFactory.CreateDough();
     sauce  = ingredientFactory.CreateSauce();
     cheese = ingredientFactory.CreateCheese();
     clam   = ingredientFactory.CreateClam();
 }
Ejemplo n.º 2
0
 public override void Prepare()
 {
     Console.WriteLine("Preparing " + GetName());
     dough  = ingredientFactory.CreateDough();
     sauce  = ingredientFactory.CreateSauce();
     cheese = ingredientFactory.CreateCheese();
     clam   = ingredientFactory.CreateClam();
 }
Ejemplo n.º 3
0
 public override void Prepare()
 {
     Console.WriteLine("Preparing..." + Name);
     Dough  = pizzaIngredient.CreateDough();
     Sauce  = pizzaIngredient.CreateSauce();
     Cheese = pizzaIngredient.CreateCheese();
     Clam   = pizzaIngredient.CreateClam();
 }
Ejemplo n.º 4
0
 //披萨获取原料
 //获取工厂的原料,不在乎是什么工厂
 //Create会返回你需要的哪个工厂的哪个原料
 public override void Prepare()
 {
     Console.WriteLine("准备 " + _name);
     _dough  = _ingredientFactory.CreateDough();
     _sauce  = _ingredientFactory.CreateSauce();
     _cheese = _ingredientFactory.CreateCheese();
     _clam   = _ingredientFactory.CreateClam();
 }
Ejemplo n.º 5
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());
 }
Ejemplo n.º 6
0
        public override void Prepare()
        {
            Console.WriteLine("Preparing: " + Name);

            Clam = ingredientFactory.CreateClam();
        }