Beispiel #1
0
        public static void Test1()
        {
            var pancakeHouseMenu = new PancakeHouseMenu();
            var dinerMenu        = new DinerMenu();
            var waitress         = new Waitress(pancakeHouseMenu, dinerMenu);

            waitress.PrintMenu();
        }
Beispiel #2
0
 public Waitress(PancakeHouseMenu pancakeHouseMenu, DinerMenu dinerMenu)
 {
     PancakeHouseMenu = pancakeHouseMenu;
     DinerMenu        = dinerMenu;
 }