public Pizza(string _name, IMasa _masa, ISalsa _salsa, List <IAdicional> _adicionales) { this._name = _name; this._masa = _masa; this._salsa = _salsa; this._adicionales = _adicionales; }
public Pizza(PizzaBuilder pizzaBuilder) { this.pizzaBuilder = pizzaBuilder; this._name = pizzaBuilder.Name; this._masa = pizzaBuilder.masa; this._salsa = pizzaBuilder.salsa; this._adicionales = pizzaBuilder.adicionales; }
public PizzaBuilder CreateSalsa(ISalsa salsa) { this.salsa = salsa; return(this); }