Exemplo n.º 1
0
        public void AddIngredient(Ingredient ingredient)
        {
            if (ingredient == null)
                throw new ArgumentNullException("Not a valid ingredient");

            ingredients.Add(ingredient);
        }
Exemplo n.º 2
0
 public void RemoveIngredient(Ingredient ingToRemove)
 {
     ingredients.Remove(ingToRemove);
 }