public PizzaBuilder(bool isMignon) { _config = _configurations[isMignon]; _ingredients = new List <Ingredient>(); AddTomato(); AddMozzarella(); }
public PizzaBuilder(bool isMignon = false) { _isMignon = isMignon; _config = _configurations[_isMignon]; _ingredients = new List <Ingredient> { new Ingredient { Type = IngredientType.Tomato, Quantity = _config.Tomato }, new Ingredient { Type = IngredientType.Mozzerella, Quantity = _config.Mozzarella }, }; }
public PizzaBuilder(bool isMignon = false) { _IsMignon = isMignon; _configur = _configurations[isMignon]; _ingredients = new List <Ingredient>(); }