Beispiel #1
0
        public void Cook()
        {
            var bowl   = new Bowl();
            var potato = new Potato();
            var carrot = new Carrot();

            Peel(potato);
            Cut(potato);
            bowl.AddVegetable(potato);

            Peel(carrot);
            Cut(carrot);
            bowl.AddVegetable(carrot);
        }
Beispiel #2
0
        private IVegetable GetPotato()
        {
            var potato = new Potato();

            return(potato);
        }