Beispiel #1
0
        public void Cook()
        {
            Potato potato = this.GetPotato();
            Carrot carrot = this.GetCarrot();

            Vegetable peeledPotato = Vegetable.Peel(potato);
            Vegetable peeledCarrot = Vegetable.Peel(carrot);

            Vegetable cutPotato = this.Cut(potato);
            Vegetable cutCarrot = this.Cut(carrot);

            Bowl bowl = this.GetBowl();

            bowl.Add(cutPotato);
            bowl.Add(cutCarrot);
        }
Beispiel #2
0
 private void Peel(Vegetable vegetable)
 {
     // ..
     vegetable.Peel();
 }
 private void Peel(Vegetable vegetable)
 {
     vegetable.Peel();
 }
Beispiel #4
0
 private void Peel(Vegetable vegetableToPeel)
 {
     // ..
     vegetableToPeel.Peel();
 }
Beispiel #5
0
 private void Peel(Vegetable potato)
 {
     potato.Peel();
 }
Beispiel #6
0
 private void Peel(Vegetable vegetableToPeel)
 {
     // ..
     vegetableToPeel.Peel();
 }