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