예제 #1
0
        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();
        }
예제 #2
0
        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();
        }