Exemple #1
0
        public void AddIngredient(Ingredient ingredient)
        {
            if (ingredient == null)
                throw new ArgumentNullException("Not a valid ingredient");

            ingredients.Add(ingredient);
        }
Exemple #2
0
 public void RemoveIngredient(Ingredient ingToRemove)
 {
     ingredients.Remove(ingToRemove);
 }