Esempio n. 1
0
        public static void Main()
        {
            Chef cooker = new Chef();
            Potato potato = new Potato();

            if (potato != null && potato.IsPeeled && potato.IsRotten)
            {
                cooker.Cook(potato);
            }
        }
Esempio n. 2
0
        public static void Main()
        {
            Chef   cooker = new Chef();
            Potato potato = new Potato();

            if (potato != null && potato.IsPeeled && potato.IsRotten)
            {
                cooker.Cook(potato);
            }
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            IVegetable carrot = new Carrot();
            IVegetable patato = new Patato();
            IVegetable paper  = new Paper();

            IVegetable vegetables = new Vegetables();

            IAppearance bowl    = new Bowl();
            IAppearance steamer = new Steamer();

            Chef chef = new Chef();

            chef.Wash();
            chef.Cut();
            chef.Prepare(bowl);
            chef.Cook(steamer);
            chef.Serve();
        }
Esempio n. 4
0
 public static void Main()
 {
     var chef = new Chef();
     var bowl = chef.Cook();
 }
Esempio n. 5
0
 static void Main()
 {
     var chef = new Chef();
     chef.Cook();
 }
Esempio n. 6
0
 public static void Main()
 {
     var chef = new Chef();
     var bowl = chef.Cook();
 }