Пример #1
0
        public GuestController(
            IGuestService guestService
            , IGuestItineararyRequestService requestService
            , IItineararyService itineraryService
            , IMapper mapper)
        {
            if (guestService == null)
            {
                throw new ArgumentNullException(nameof(guestService));
            }

            if (requestService == null)
            {
                throw new ArgumentNullException(nameof(requestService));
            }

            if (itineraryService == null)
            {
                throw new ArgumentNullException(nameof(itineraryService));
            }

            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }

            this.guestService      = guestService;
            this.requestService    = requestService;
            this.itinerarryService = itineraryService;
            this.mapper            = mapper;
        }
Пример #2
0
 public GuestController(IGuestService guestService)
 {
     this.guestService  = guestService;
     this.toModelMapper = new MapperConfiguration(cfg => cfg.CreateMap <GuestDTO, GuestModel>()).CreateMapper();
     this.toDtoMapper   = new MapperConfiguration(cfg => cfg.CreateMap <GuestModel, GuestDTO>()).CreateMapper();
     guestValidator     = new GuestValidator();
 }
        protected override void Dispose(bool disposing)
        {
            if (disposing && _guestReservationService != null)
            {
                _guestReservationService.Dispose();
                _guestReservationService = null;
            }

            if (disposing && _employeeShiftService != null)
            {
                _employeeShiftService.Dispose();
                _employeeShiftService = null;
            }

            if (disposing && _guestService != null)
            {
                _guestService.Dispose();
                _guestService = null;
            }

            if (disposing && _personService != null)
            {
                _personService.Dispose();
                _personService = null;
            }

            if (disposing && _tableItemService != null)
            {
                _tableItemService.Dispose();
                _tableItemService = null;
            }


            base.Dispose(disposing);
        }
 public PrintingController()
 {
     _personService           = new PersonService();
     _guestRoomAccountService = new GuestRoomAccountService();
     _guestService            = new GuestService();
     _roomService             = new RoomService();
 }
Пример #5
0
 public ReservationBuilder(IPromoCodeService promoCodeService, IGuestService guestService, IRoomGateway roomGateway)
 {
     _promoCodeService     = promoCodeService;
     _guestService         = guestService;
     _roomGateway          = roomGateway;
     _reservationValidator = InitValidator();
 }
 public FacilityReservationController(IFacilityReservationService facilityReservationService, IPublicArea publicArea,
                                      IGuestService guestService, IAuthenticate authenticator)
 {
     _facilityReservationService = facilityReservationService;
     _publicArea    = publicArea;
     _guestService  = guestService;
     _authenticator = authenticator;
 }
 public AccountController()
 {
     _employeeShiftService    = new EmployeeShiftService();
     _tableItemService        = new TableItemService();
     _guestService            = new GuestService();
     _personService           = new PersonService();
     _guestReservationService = new GuestReservationService();
 }
Пример #8
0
 public EventService(IRepository <Event> eventRepo, IUnitOfWork unitOfWork, IRepository <EventGuest> eventGuestRepo, IGuestService guestService, IRepository <Guest> guestRepo)
 {
     this.eventRepo      = eventRepo;
     this.unitOfWork     = unitOfWork;
     this.eventGuestRepo = eventGuestRepo;
     this.guestService   = guestService;
     this.guestRepo      = guestRepo;
 }
Пример #9
0
 public GuestController(UserManager <ApplicationUser> userManager,
                        IGuestService GuestService,
                        ILogger <GuestController> logger)
     : base(userManager)
 {
     this._GuestService = GuestService;
     this._logger       = logger;
 }
Пример #10
0
        public TransportReservationController(IGuestService guestService, IShuttleServices shuttleService)
        {
            //Calling Mod 1 Team 9 Service - for getting guest
            _guestService = guestService;

            //Calling Mod 2 Team 2 Service - for checking availability of transport reservation
            _shuttleService = shuttleService;
        }
Пример #11
0
 public HomeController()
 {
     _personService           = new PersonService();
     _roomService             = new RoomService();
     _guestService            = new GuestService();
     _guestReservationService = new GuestReservationService();
     _guestRoomService        = new GuestRoomService();
 }
Пример #12
0
 public EventsController(IEventService service,
                         IUserService userService,
                         IGuestService guestService) : base(service, userService)
 {
     _service             = service;
     _userService         = userService;
     _guestService        = guestService;
     _participantsContext = new Participants(GlobalHost.ConnectionManager.GetHubContext <ParticipantsHub>());
 }
Пример #13
0
 public ProjectController(IProjectService projectService, IDataContext dataContext, ITagService tagService, ITimeStartService timeStartService, IGuestService guestService, IReportService reportService)
 {
     this.projectService   = projectService;
     this.dataContext      = dataContext;
     this.tagService       = tagService;
     this.timeStartService = timeStartService;
     this.guestService     = guestService;
     this.reportService    = reportService;
 }
Пример #14
0
 public GuestController(
     IGuestRepository guestRepository,
     IGuestService guestService,
     IMapper mapper
     )
 {
     this.guestService    = guestService;
     this.guestRepository = guestRepository;
     this.mapper          = mapper;
 }
Пример #15
0
 public GuestsController(
     IMessageExceptionFinder messageExceptionFinder,
     IGuestService guestService,
     IMapper mapper,
     IWorkContext workContext) : base(messageExceptionFinder)
 {
     this.guestService = guestService;
     this.mapper       = mapper;
     this.workContext  = workContext;
 }
Пример #16
0
        public AccountController()
        {
            _employeeShiftService = new EmployeeShiftService();
            _tableItemService     = new TableItemService();
            //int.TryParse(ConfigurationManager.AppSettings["HotelAccountsTime"].ToString(CultureInfo.InvariantCulture), out _hotelAccountsTime);
            _guestService = new GuestService();

            _personService = new PersonService();
            //_personTypeService = new PersonTypeService();
        }
Пример #17
0
 public GuestsController(IEfRepository <Guest> repository
                         , IGuestService service
                         , IMapper mapper
                         , IPasswordHasher passwordHasher)
 {
     _repository     = repository;
     _service        = service;
     _mapper         = mapper;
     _passwordHasher = passwordHasher;
 }
Пример #18
0
 public GuestController()
 {
     _guestService         = new GuestService();
     _personService        = new PersonService();
     _movieService         = new MovieService();
     _posItemService       = new POSItemService();
     _taxiService          = new TaxiService();
     _adventureService     = new AdventureService();
     _movieCategoryService = new MovieCategoryService();
     _guestPlaylistService = new GuestPlaylistService();
     _escortService        = new EscortService();
 }
Пример #19
0
 /// <summary>
 /// Ctor
 /// </summary>
 public FormsAuthenticationService(HttpContextBase httpContext
                                   , ICustomerService customerService
                                   , IAdminService adminService
                                   , IGuestService guestService
                                   , CustomerSettings customerSettings)
 {
     _httpContext        = httpContext;
     _customerService    = customerService;
     _adminService       = adminService;
     _guestService       = guestService;
     _expirationTimeSpan = FormsAuthentication.Timeout;
     _customerSettings   = customerSettings;
 }
 public ReservationService(IMapper mapper, ApplicationContext applicationContext, IGuestService guestService,
                           IRoomService roomService, IUserService userService, IHotelService hotelService,
                           IConfiguration configuration)
 {
     this.applicationContext = applicationContext;
     this.mapper             = mapper;
     this.guestService       = guestService;
     this.roomService        = roomService;
     this.userService        = userService;
     this.hotelService       = hotelService;
     this.domainName         = configuration.GetConnectionString("DomainName");
     this.apiKey             = configuration.GetConnectionString("ApiKey");
 }
Пример #21
0
 public HotelAdminController()
 {
     _personService           = new PersonService();
     _roomService             = new RoomService();
     _roomTypeService         = new RoomTypeService();
     _guestService            = new GuestService();
     _guestRoomService        = new GuestRoomService();
     _businessAccountService  = new BusinessAccountService();
     _guestReservationService = new GuestReservationService();
     _transactionService      = new TransactionService();
     _guestRoomAccountService = new GuestRoomAccountService();
     _roomStatusService       = new RoomStatuService();
 }
 public CompanyAccountController()
 {
     int.TryParse(ConfigurationManager.AppSettings["HotelAccountsTime"].ToString(CultureInfo.InvariantCulture), out _hotelAccountsTime);
     _guestService                    = new GuestService();
     _businessAccountService          = new BusinessAccountService();
     _roomService                     = new RoomService();
     _guestRoomService                = new GuestRoomService();
     _guestReservationService         = new GuestReservationService();
     _guestRoomAccountService         = new GuestRoomAccountService();
     _personService                   = new PersonService();
     _personTypeService               = new PersonTypeService();
     _businessAccountCorporateService = new BusinessCorporateAccountService();
     _paymentService                  = new PaymentService();
 }
Пример #23
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;
        }
Пример #24
0
        internal GuestHandle(IGuestService guestService, IAdminService adminService, IUserService userService)
        {
            if (guestService == null)
            {
                throw new ArgumentNullException("guestService");
            }

            if (adminService == null)
            {
                throw new ArgumentNullException("adminService");
            }

            if (userService == null)
            {
                throw new ArgumentNullException("userService");
            }

            _guestService = guestService;
            _adminService = adminService;
            _userService = userService;
        }
        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);
        }
Пример #26
0
 public ExcelService(IGuestService guestService)
 {
     _guestService = guestService;
 }
Пример #27
0
 public PaymentController(IPaymentService paymentService, IGuestService guestService, IReservationService reservationService)
 {
     this.paymentService     = paymentService;
     this.guestService       = guestService;
     this.reservationService = reservationService;
 }
Пример #28
0
 public HomeController(IGuestService guestService, IWorkshopService workshopService, IWorkshopGuestService workshopGuestService)
 {
     _guestService = guestService;
     _workshopService = workshopService;
     _workshopGuestService = workshopGuestService;
 }
Пример #29
0
 public GuestController(IGuestService service)
 {
     _service = service;
 }
Пример #30
0
 public GuestPermission(IGuestService guestService)
 {
     this.guestService = guestService;
 }
 public GuestsController(IGuestService GuestService)
 { _GuestService = GuestService; }
Пример #32
0
 public GuestController(IGuestService guestService, IAuthenticate authenticator)
 {
     _guestService  = guestService;
     _authenticator = authenticator;
 }
 public IsGuestExistAttribute(IGuestService guestService)
 {
     this.guestService = guestService;
     ErrorMessage      = "Guest with such id does not exist";
 }
Пример #34
0
 public HomeController(IGuestService guestService)
 {
     _guestService = guestService;
 }
Пример #35
0
 public QrController(IGuestService guestService)
 {
     _guestService = guestService;
 }
Пример #36
0
 public GuestsController(IGuestService service,
                         IUserService users)
     : base(service, users)
 {
     _service = service;
 }
Пример #37
0
 public GuestController(IGuestService guestService, IQrCodeGenerator qrCodeGenerator, IPdfService pdfService)
 {
     _guestService = guestService;
     _qrCodeGenerator = qrCodeGenerator;
     _pdfService = pdfService;
 }