Exemple #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);
        }
Exemple #2
0
 private void Peel(Vegetable vegetable)
 {
     // ..
     vegetable.Peel();
 }
 private void Peel(Vegetable vegetable)
 {
     vegetable.Peel();
 }
Exemple #4
0
 private void Peel(Vegetable vegetableToPeel)
 {
     // ..
     vegetableToPeel.Peel();
 }
Exemple #5
0
 private void Peel(Vegetable potato)
 {
     potato.Peel();
 }
Exemple #6
0
 private void Peel(Vegetable vegetableToPeel)
 {
     // ..
     vegetableToPeel.Peel();
 }