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

            this.Peel(potato);
            this.Cut(potato);
            bowl.Add(potato);

            this.Peel(carrot);
            this.Cut(carrot);
            bowl.Add(carrot);
        }
Beispiel #2
0
        private Potato GetPotato()
        {
            var potato = new Potato();

            return(potato);
        }