public PizzaBuilder(PizzaBase baseType, bool isMignon = false) { _baseType = baseType; _isMignon = isMignon; _config = PizzaConfiguration.Configurations[isMignon]; _ingredients = new List <Ingredient>(); }
public Pizza(PizzaBase baseType, bool isMignon) { Ingredients = new List <Ingredient>(); _config = PizzaConfiguration.Configurations[isMignon]; _isMignon = isMignon; switch (baseType) { case PizzaBase.Tomato: Ingredients.Add(new Ingredient() { Type = IngredientType.Tomato, Quantity = _config.Tomato }); break; default: break; } }