public AppointmentService(IAppointmentRepository appointmentRepository, IUserGateway userGateway, IRoomGateway roomGateway, ISurveyRepository surveyRepository)
 {
     _appointmentRepository = appointmentRepository;
     _userGateway           = userGateway;
     _roomGateway           = roomGateway;
     _surveyRepository      = surveyRepository;
 }
Exemple #2
0
 public ReservationBuilder(IPromoCodeService promoCodeService, IGuestService guestService, IRoomGateway roomGateway)
 {
     _promoCodeService     = promoCodeService;
     _guestService         = guestService;
     _roomGateway          = roomGateway;
     _reservationValidator = InitValidator();
 }
Exemple #3
0
        public ReservationCreationController(IReservationService reservationService, IGuestService guestService, IPromoCodeService promoCodeService,
                                             IRoomGateway roomGateway, IReservationDirector reservationDirector)
        {
            // Mod 1 Team 4 Services
            _reservationService  = reservationService;
            _promoCodeService    = promoCodeService;
            _reservationDirector = reservationDirector;

            // Calling Mod 1 Team 9 Service - for guest details
            _guestService = guestService;

            // Calling Mod 1 Team 6 Room Service - for room instance
            _roomGateway = roomGateway;
        }
        public ReservationManagementController(IReservationService reservationService,
                                               IPromoCodeService promoCodeService,
                                               IGuestService guestService, IRoomGateway roomGateway, iReservationInvoice iReservationInvoice,
                                               IAuthenticate authenticate)
        {
            _reservationService = reservationService;
            _promoCodeService   = promoCodeService;

            // Calling Mod 1 Team 9 Service - for guest details
            _guestService = guestService;

            // Call Mod 1 Team 6 Room Service - for room instance
            _roomGateway = roomGateway;

            // Calling Mod 1 Team 6 Authentication Service - for authentication of secret pin
            _authenticate = authenticate;

            // Call Mod 2 Team 7 ReservationInvoice Service - for payment of cancellation
            _iReservationInvoice = iReservationInvoice;

            // Validator has to init last
            _reservationValidator = new ReservationValidator(_promoCodeService, _guestService, _roomGateway);
        }
 public RoomFacade(IRoom inRoomTable, IRoomGateway inRoomGateway)
 {
     roomTable   = inRoomTable;
     roomGateway = inRoomGateway;
 }
 public AppointmentFilterService(IAppointmentService appointmentService, IUserGateway userGateway, IRoomGateway roomGateway)
 {
     _appointmentService = appointmentService;
     _userGateway        = userGateway;
     _roomGateway        = roomGateway;
 }