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(); }
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(); }
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(); }
public Waitress(PancakeHouseMenu pancakeHouseMenu, DinnerMenu dinnerMenu, CafeMenu cafeMenu) { _pancakeHouseMenu = pancakeHouseMenu; _dinnerMenu = dinnerMenu; _cafeMenu = cafeMenu; }