public APizza(Size size, Crust crust)
 {
     ToppingList = new List <Topping>();
     InitializeToppings();
     FactoryMethod(size, crust);
 }
 private void FactoryMethod(Size size, Crust crust)
 {
     SetCrust(crust);
     SetSize(size);
     AddDefaultToppings();
 }
Пример #3
0
 protected virtual void AddCrust(Crust crust)
 {
 }
 public bool SetCrust(Crust crust)
 {
     PizzaCrust = crust;
     return(true);
 }
 public MeatPizza(Size size, Crust crust) : base(size, crust)
 {
 }
Пример #6
0
 public APizzaModel(string name, Size size, Crust crust)
 {
     Name  = name;
     Size  = size;
     Crust = crust;
 }
Пример #7
0
 private void Factory(Crust crust, Size size, List <Topping> toppings)
 {
     AddCrust(crust);
 }
Пример #8
0
 /// <summary>
 ///
 /// </summary>
 public abstract void AddCrust(Crust crust = null);
Пример #9
0
 public APizza(Size size, Crust crust)
 {
     FactoryMethod(size, crust);
 }
Пример #10
0
 protected APizza(Crust crust, Size size, List <Topping> toppings)
 {
 }
Пример #11
0
 public ATruePizza(string c, string s)
 {
     Crust = new Crust(c);
     Size  = new Size(s);
 }
Пример #12
0
 public abstract List <AComponent> GetComponents(Crust c, Size s, List <Toppings> t);
Пример #13
0
 public abstract void AddCrust(Crust c);
Пример #14
0
        /// <summary>
        ///
        /// </summary>

        protected void AddCrust(string crustType, double cost)
        {
            ThisCrust = new Crust(crustType, cost);
        }
Пример #15
0
 public virtual void AddCrust(Crust crust)
 {
 }
 // private List<ToppingType>
 public VeggiePizza(Size size, Crust crust) : base(size, crust)
 {
 }
Пример #17
0
 protected APizzaModel(Crust crust, Size size)
 {
     AddCrust(crust);
     AddSize(size);
     AddToppings();
 }
Пример #18
0
 public virtual void AddCrust()
 {
     Crust = new Crust();
 }
Пример #19
0
 public CustomPizza(Size size, Crust crust) : base(size, crust)
 {
 }