public void Add(Vegetable vegetable) { if (vegetable == null) { throw new ArgumentNullException("Can't add null object to bowl."); } this.vegetables.Add(vegetable); }
public void Add(Vegetable vegetable) { if (vegetable.IsPeeled && vegetable.IsCut) { this.Content.Add(vegetable); } else { throw new ArgumentException("The vegetable shoud be peeled and cut."); } }
private void Cut(Vegetable vegetable) { }
private static void Peel(Vegetable vegetable) { Console.WriteLine("Peeling"); }
private void Cut(Vegetable vegetable) { // TODO: Cut vegetable }
private void Peel(Vegetable vegetable) { // TODO: Peel vegetable }
private static void Peel(Vegetable vegetable) { vegetable.Peel(); }
/// <summary> /// Put the <paramref name="vegetable"/> in a bowl /// </summary> /// <param name="vegetable">Vegetable name</param> public void PutInBowl(Vegetable vegetable) { this.vegitablesInBowl.Add(vegetable); }
private void Cut(Vegetable vegetable) { this.cookingLog.Add( string.Format( "Cut the {0}. (Not a single drop of blood.\r\n" + "I was blind but now I see I was born to be a chef.)", vegetable)); }
private void Wash(Vegetable vegetable) { this.cookingLog.Add( string.Format( "Washed the {0}.\r\n" + "(I think the aquarium should be in the kitchen.)", vegetable)); }
private void Peel(Vegetable vegetable) { vegetable.IsPeeled = true; this.cookingLog.Add( string.Format( "Peeled the {0}.\r\n" + "(What a useless operation. This is outrageous!)", vegetable)); }
private void MaybeNextTime(Vegetable vegetable) { this.cookingLog.Add( string.Format( "The {0} is rotten.\r\n" + "(They betrayed meeee! Wish I knew who bought this.)", vegetable)); }
private void Peel(Vegetable vegetable) { vegetable.IsPeeled = true; }
private void Cut(Vegetable vegetable) { vegetable.IsCut = true; }
/// <summary> /// Cut the <paramref name="vegetable"/> /// </summary> /// <param name="vegetable">Vegetable name</param> public void Cut(Vegetable vegetable) { vegetable.IsCut = true; }
private void PutIn(Utensil utensil, Vegetable vegetable) { string result = utensil.Add(vegetable); this.cookingLog.Add(result); }
/// <summary> /// Peel the <paramref name="vegetable"/> /// </summary> /// <param name="vegetable">Vegetable name</param> public void Peel(Vegetable vegetable) { vegetable.IsPeeled = true; }
private static void Cut(Vegetable vegetable) { vegetable.Cut(); }
static void Cook(Vegetable vegetable) { vegetable.IsCooked = true; }
internal void Add(Vegetable vegetable) { throw new NotImplementedException(); }