예제 #1
0
        static void Main(string[] args)
        {
            var pancakeHouseMenu = new PancakeHouseMenu();
            var dinerMenu        = new DinerMenu();

            var waitress = new Waitress(pancakeHouseMenu, dinerMenu);

            waitress.PrintMenu();

            // Wait for user
            Console.ReadKey();
        }
 public Waitress(PancakeHouseMenu pancakeHouseMenu, DinerMenu dinerMenu)
 {
     this._pancakeHouseMenu = pancakeHouseMenu;
     this._dinerMenu        = dinerMenu;
 }
예제 #3
0
 public Waitress(PancakeHouseMenu pancakeHouseMenu, DinerMenu dinerMenu)
 {
     this._pancakeHouseMenu = pancakeHouseMenu;
     this._dinerMenu = dinerMenu;
 }
예제 #4
0
        static void Main(string[] args)
        {
            PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();
            DinerMenu dinerMenu = new DinerMenu();

            Waitress waitress = new Waitress(pancakeHouseMenu, dinerMenu);

            waitress.PrintMenu();

            // Wait for user
            Console.ReadKey();
        }
 public Waitress(PancakeHouseMenu pancakeHouseMenu, DinerMenu dinerMenu)
 {
     _pancakeHouseMenu = pancakeHouseMenu;
     _dinerMenu        = dinerMenu;
 }