示例#1
0
        public Bowl Cook(Vegetable vegetable)
        {
            Bowl bowl = GetBowl();

            bowl.Add(vegetable);

            return(bowl);
        }
示例#2
0
        public Bowl Cook()
        {
            Potato potato = GetPotato();

            Peel(potato);
            Cut(potato);

            Carrot carrot = GetCarrot();

            Peel(carrot);
            Cut(carrot);

            Bowl bowl = GetBowl();

            bowl.Add(carrot);
            bowl.Add(potato);

            return(bowl);
        }