コード例 #1
0
ファイル: Chef.cs プロジェクト: dhija/Telerik
        public void Cook()
        {
            Bowl bowl = GetBowl();

            Carrot carrot = GetCarrot();

            Peel(carrot);
            Cut(carrot);
            bowl.Add(carrot);

            Potato potato = GetPotato();

            Peel(potato);
            Cut(potato);
            bowl.Add(potato);
        }
コード例 #2
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);
        }