Beispiel #1
0
        public void CookByProducts(params NaturalFood[] products)
        {
            Bowl bowl = this.GetBowl();

            foreach (var product in products)
            {
                bowl.Add(product);
            }

            // ...
        }
        public void Cook()
        {
            Bowl bowl = new Bowl();
            Potato potato = this.GetPotato();
            Carrot carrot = this.GetCarrot();
            this.GetBowl();

            this.Peel(potato);
            this.Peel(carrot);

            this.Cut(potato);
            this.Cut(carrot);

            bowl.Add(carrot);
            bowl.Add(potato);
        }
Beispiel #3
0
        public void Cook()
        {
            Potato potato = this.GetPotato();

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

            Carrot carrot = this.GetCarrot();

            this.Peel(carrot);
            this.Cut(carrot);

            Bowl bowl = this.GetBowl();

            bowl.Add(potato);
            bowl.Add(carrot);
        }
 private Bowl GetBowl()
 {
     Bowl newBowl = new Bowl();
         return newBowl;
 }
        private Bowl GetBowl()
        {
            Bowl newBowl = new Bowl();

            return(newBowl);
        }