Example #1
0
 public override void Prepare()
 {
     Console.WriteLine("Preparing " + name);
     dough  = ingredientFactory.CreateDough();
     sauce  = ingredientFactory.CreateSauce();
     cheese = ingredientFactory.CreateCheese();
     clams  = ingredientFactory.CreateClams();
 }
 public override void Prepare()
 {
     Console.WriteLine("Preparing " + Name);
     Dough  = _ingredientFactory.CreateDough();
     Sauce  = _ingredientFactory.CreateSauce();
     Cheese = _ingredientFactory.CreateCheese();
     Clams  = _ingredientFactory.CreateClams();
 }