static void Main(string[] args) { IHotelDao hotelDao = new HotelApiDao(apiUrl); IReviewDao reviewDao = new ReviewApiDao(apiUrl); IReservationDao reservationDao = new ReservationApiDao(apiUrl); new MainMenu(hotelDao, reviewDao, reservationDao).Show(); }
static void Main(string[] args) { // TODO 01: Note the new architecture: using DAOs for API access also. IHotelDao hotelDao = new HotelApiDao(apiUrl); IReviewDao reviewDao = new ReviewApiDao(apiUrl); IReservationDao reservationDao = new ReservationApiDao(apiUrl); new MainMenu(hotelDao, reviewDao, reservationDao).Show(); }