public Bowl 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); return(bowl); }
public void Cook() { var potato = this.GetPotato(); var carrot = this.GetCarrot(); var peeledPotato = this.Peel(potato); var peeledCarrot = this.Peel(carrot); var cuttedPotato = this.Cut(potato); var cuttedCarrot = this.Cut(carrot); Bowl bowl = this.GetBowl(); var bowlwithVegetables = bowl.Add(cuttedPotato); bowlwithVegetables.Add(cuttedCarrot); var oven = new Oven(); var coockedMeal = oven.Cook(bowlwithVegetables); }
private Bowl GetBowl() { Bowl bowl = new Bowl(); return(bowl); }