コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Chef.cs プロジェクト: de3ka/TelerikAcademy
        private Potato GetPotato()
        {
            Potato potato = new Potato();

            return(potato);
        }