Beispiel #1
0
        static void Main(string[] args)
        {
            PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();
            DinerMenu        dinerMenu        = new DinerMenu();
            Waitress         waitress         = new Waitress(pancakeHouseMenu, dinerMenu);

            waitress.PrintMenu();

            Console.Read();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var pancakeMenu = new PancakeHouseMenu();
            var dinnerMenu  = new DinnerMenu();
            var cafeMenu    = new CafeMenu();

            var waitress = new Waitress(pancakeMenu, dinnerMenu, cafeMenu);

            waitress.PrintMenu();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            IEnumerable <MenuItem> pancakeHouseMenu = new PancakeHouseMenu();
            IEnumerable <MenuItem> dinerMenu        = new DinerMenu();
            IEnumerable <MenuItem> cafeMenu         = new CafeMenu();
            var waitress = new Waitress(new [] { pancakeHouseMenu, dinerMenu, cafeMenu });

            waitress.PrintMenu();
        }
Beispiel #4
0
        public static int Main()
        {
            DinerMenu dinerMenu = new DinerMenu();
            PancakeHouseMenu pancakeMenu = new PancakeHouseMenu();
            CafeMenu cafeMenu = new CafeMenu();

            Console.WriteLine("Start Test!");
            Waitress waitress = new Waitress(dinerMenu, pancakeMenu, cafeMenu);
            waitress.PrintMenu();
            Console.WriteLine("Test finished!");
            return 0;
        }
        static void MenuTestDriveUsingIEnumerator()
        {
            var pancakeHouseMenu = new PancakeHouseMenu();
            var dinerMenu        = new DinerMenu();
            var cafeMenu         = new CafeMenu();

            var waitress = new Waitress(new ArrayList(3)
            {
                pancakeHouseMenu, dinerMenu, cafeMenu
            });

            waitress.PrintMenu();
        }