Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            IAccountDao     accountDao     = new AccountApiDao(apiUrl);
            IHotelDao       hotelDao       = new HotelApiDao(apiUrl);
            IReservationDao reservationDao = new ReservationApiDao(apiUrl);

            new MainMenu(accountDao, hotelDao, reservationDao).Show();
        }
Ejemplo n.º 3
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();
        }