public void Cook(params IIngredient[] ingredients) { this.ingredients = ingredients; this.bowl = this.GetBowl(); this.ProccessIngredients(this.bowl, this.ingredients); Console.WriteLine("COOKING TIME..."); }
private void ProccessIngredients(ITableware bowlToUse, params IIngredient[] ingredientsToUse) { foreach (var ingredient in ingredientsToUse) { this.Peel(ingredient); this.Cut(ingredient); bowlToUse.Add(ingredient); } }