Exemplo n.º 1
0
        public CheesePizza(IPizzaIngredientFactory ingredientFactory)

        {

            this.ingredientFactory = ingredientFactory;

        }
Exemplo n.º 2
0
        public ClamPizza(IPizzaIngredientFactory ingredientFactory)

        {

            this.ingredientFactory = ingredientFactory;

        }
        public PepperoniPizza(IPizzaIngredientFactory ingredientFactory)

        {

            this.ingredientFactory = ingredientFactory;

        }
Exemplo n.º 4
0
 public PepperoniPizzaNY()
 {
     pizzaIngredientFactory = new PizzaIngredientFactoryNY();
     name = "PepperoniPizza NY";
     dough = pizzaIngredientFactory.CreateDough().GetDough();
     sauce = pizzaIngredientFactory.CreateSauce().GetSauce(); ;
 }
Exemplo n.º 5
0
 public GreekPizzaNY()
 {
     //直接使用相對應的原料工廠
     pizzaIngredientFactory = new PizzaIngredientFactoryNY();
     name = "GreekPizza NY";
     //找出原料(CreateDough)並取得原料(GetDough)
     //且不需要知道是向誰取得
     dough = pizzaIngredientFactory.CreateDough().GetDough();
     sauce = pizzaIngredientFactory.CreateSauce().GetSauce(); ;
 }
Exemplo n.º 6
0
 public Pizza(IPizzaIngredientFactory ingredientFactory, IPizzaCookBehavior cookBehavior)
 {
     this.ingredientFactory = ingredientFactory;
     this.cookBehavior      = cookBehavior;
 }
Exemplo n.º 7
0
 public VeggiePizza(IPizzaIngredientFactory ingredientFactory)
 {
     this._ingredientFactory = ingredientFactory;
 }
Exemplo n.º 8
0
 public PepperoniPizza(IPizzaIngredientFactory ingredientFactory) => _ingredientFactory = ingredientFactory;
Exemplo n.º 9
0
 public NYStyleVeggiePizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
 public ClamsPizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 11
0
 public ClamPizza(IPizzaIngredientFactory ingredientFactory, string name = "Cheese Pizza")
 {
     Name     = name;
     _factory = ingredientFactory;
 }
Exemplo n.º 12
0
 public ClamPizza(IPizzaIngredientFactory ingredientFactory, IBoxFactory boxFactory)
 {
     _ingredientFactory = ingredientFactory;
     _boxFactory        = boxFactory;
 }
Exemplo n.º 13
0
 public PepperoniPizza(string name, IPizzaIngredientFactory ingredientFactory) : base(name)
 {
     _ingredientFactory = ingredientFactory;
 }
 public ChicagoStyleVeggiePizza(IPizzaIngredientFactory pizzaIngredientFactory) : base(pizzaIngredientFactory)
 {
 }
Exemplo n.º 15
0
 public VeggiePizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     this._pizzaIngredientFactory = pizzaIngredientFactory;
 }
 public VeggiePizza(IPizzaIngredientFactory ingredientFactory)
 {
     _ingredientFactory = ingredientFactory;
 }
Exemplo n.º 17
0
 public VeggiePizza(IPizzaIngredientFactory ingredientFactory) : base(ingredientFactory)
 {
     Name = "Veggie Pizza";
 }
Exemplo n.º 18
0
 public PepperoniPizza(IPizzaIngredientFactory ingredientFactory, IPizzaCookBehavior cookBehavior) : base(ingredientFactory, cookBehavior)
 {
 }
Exemplo n.º 19
0
 public CheesePizza(IPizzaIngredientFactory factory)
 {
     this.ingredientFactory = factory;
 }
Exemplo n.º 20
0
 public ChicagoStyleCheesePizza(IPizzaIngredientFactory ingredientFactory)
 {
     _ingredientFactory = ingredientFactory;
 }
Exemplo n.º 21
0
 public CaliforniaPizzaStore()
 {
     pizzaIngredientFactory = new CAPizzaIngredientFactory();
 }
Exemplo n.º 22
0
 public PepperoniPizza(IPizzaIngredientFactory pizzaIngredientFactory) : base(pizzaIngredientFactory)
 {
 }
Exemplo n.º 23
0
 public NYStyleGreekPizza(IPizzaIngredientFactory ingredientFactory)
 {
     this.ingredientFactory = ingredientFactory;
 }
 public CheesePizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 25
0
 public ClamPizza(IPizzaIngredientFactory ingredientFactory)
 {
     this._ingredientFactory = ingredientFactory;
 }
Exemplo n.º 26
0
 public ClamPizza(IPizzaIngredientFactory ingredientFactory) : base(ingredientFactory)
 {
 }
Exemplo n.º 27
0
 public CheesePizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
     Name = "Cheese pizza";
 }
Exemplo n.º 28
0
 public PepperoniPizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 29
0
 public ClamPizza(string style, IPizzaIngredientFactory pizzaIngredientFactory)
     : base(style, pizzaIngredientFactory)
 {
 }
Exemplo n.º 30
0
 public ChicagoStyleCheesePizza(IPizzaIngredientFactory pizzaIngredientFactory) : base(pizzaIngredientFactory)
 {
 }
 public NYStyleVeggiePizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 32
0
 public VeggiePizza(string style, IPizzaIngredientFactory pizzaIngredientFactory)
     : base(style, pizzaIngredientFactory)
 {
 }
Exemplo n.º 33
0
 public NYStyleClamPizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
 public NYStylePepperoniPizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 35
0
 public Pizza(string style, IPizzaIngredientFactory pizzaIngredientFactory)
 {
     this.style = style;
     this.pizzaIngredientFactory = pizzaIngredientFactory;
 }
 public GreekPizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     Console.WriteLine("Greek Pizza");
     _pizzaIngredientFactory = pizzaIngredientFactory;
 }
 public ChicagoStyleCheesePizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     this.pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 38
0
 public NYStylePepperoniPizza(IPizzaIngredientFactory pizzaIngredientFactory)
 {
     this.pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 39
0
 public PepperoniPizza(IPizzaIngredientFactory ingredientFactory)
 {
     this.ingredientFactory = ingredientFactory;
 }
Exemplo n.º 40
0
 public Pizza(string style, IPizzaIngredientFactory pizzaIngredientFactory)
 {
     this.style = style;
     this.pizzaIngredientFactory = pizzaIngredientFactory;
 }
Exemplo n.º 41
0
 public CheesePizza(IPizzaIngredientFactory ingredientFactory)
 {
     this._ingredientFactory = ingredientFactory;
     Name = "纽约式奶酪比萨";
 }
Exemplo n.º 42
0
 public CheesePizza(IPizzaIngredientFactory ingredientFactory)
 {
     _ingredientFactory = ingredientFactory;
 }
 protected Pizza(string name, IPizzaIngredientFactory factory)
 {
     pizzaIngredientFactory = factory;
     this.name = name;
 }