Exemplo n.º 1
0
 public BookingController(IRoomRepository roomRepository,
                          IGuestRepository guestRepository, IBookRepository bookRepository)
 {
     _roomRepository  = roomRepository;
     _guestRepository = guestRepository;
     _bookRepository  = bookRepository;
 }
 public ReservationService(IReservationRepository reservationRepository, IGuestRepository guestRepository,
                           IHostRepository hostRepository)
 {
     reservationRepo = reservationRepository;
     guestRepo       = guestRepository;
     hostRepo        = hostRepository;
 }
Exemplo n.º 3
0
 public void InitTests()
 {
     _scope     = _factory.Services.CreateScope();
     _context   = _scope.ServiceProvider.GetRequiredService <WeddingDbContext>();
     _guestRepo = _scope.ServiceProvider.GetRequiredService <IGuestRepository>();
     _client    = _factory.CreateClient();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AdminstratorLogic"/> class.
 /// </summary>
 /// <param name="ticketRepo">Ticket Repo.</param>
 /// <param name="eventRepository">Event Repo.</param>
 /// <param name="guestRepository">Guest Repo.</param>
 /// <param name="adminRepository">Admin Repo.</param>
 public AdminstratorLogic(ITicketRepository ticketRepo, IEventRepository eventRepository, IGuestRepository guestRepository, IAdminUserRepository adminRepository)
 {
     this.ticketRepo      = ticketRepo;
     this.eventRepository = eventRepository;
     this.guestRepository = guestRepository;
     this.adminRepository = adminRepository;
 }
Exemplo n.º 5
0
 public CreateUserViewModel(bool edit, INotificationService notificationService, IGuestRepository guestRepository = null, int guestId = 0) : this()
 {
     GuestRepository     = guestRepository;
     NotificationService = notificationService;
     if (!edit)
     {
         DisplayTitle = "Create new User";
         AcceptButton = "Create";
         IsEdit       = false;
         Guest        = new Guest();
     }
     else
     {
         DisplayTitle  = "Edit User";
         AcceptButton  = "Edit";
         IsEdit        = true;
         Guest         = GuestRepository.Get(guestId);
         _firstName    = Guest.FirstName;
         _lastname     = Guest.Lastname;
         _phone        = Guest.PhoneNumber;
         _userName     = Guest.Username;
         _passwordHash = Guest.PasswordHash;
         _dateOfBirth  = Guest.DateOfBirth;
     }
 }
 public GuestController(
     IGuestRepository GuestRepository,
     IMapper mapper
     )
 {
     this.GuestRepository = GuestRepository;
     this.mapper          = mapper;
 }
Exemplo n.º 7
0
 public GuestService(
     IGuestRepository guestRepository,
     IMapper mapper
     )
 {
     this.guestRepository = guestRepository;
     this.mapper          = mapper;
 }
Exemplo n.º 8
0
 public WeddingHallService(
     IWeddingHallRespository weddingHallRespository,
     IGuestRepository guestRepository,
     IMapper mapper)
     : base(weddingHallRespository, mapper)
 {
     _guestRepository = guestRepository;
 }
 public OBAuthenticationStateProvider(ILocalStorageService localStorage, OpenBulletSettingsService settings,
                                      IGuestRepository guestRepo, JwtValidationService jwtValidator)
 {
     this.localStorage    = localStorage;
     this.settingsService = settings;
     this.guestRepo       = guestRepo;
     this.jwtValidator    = jwtValidator;
 }
Exemplo n.º 10
0
 public GuestController(IBlackstonePosService blackstonePosService, 
                        IApplicantRepository applicantRepository, 
                        IGuestRepository guestRepository)
 {
     _blackstonePosService = blackstonePosService;
     _applicantRepository = applicantRepository;
     _guestRepository = guestRepository;
 }
Exemplo n.º 11
0
 public BookingsController(IBookingRepository bookings, IRoomRepository rooms, IUserRepository users, HotelContext context, IGuestRepository guests, IDiscountRepository discountRepo)
 {
     _bookings     = bookings;
     _rooms        = rooms;
     _users        = users;
     _context      = context;
     _guests       = guests;
     _discountRepo = discountRepo;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GuestData" /> class.
 /// </summary>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="referenceDataRepository">The reference data repository.</param>
 /// <param name="personStatusRepository">The person status repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 public GuestData(IGuestRepository guestRepository, IShipRepository shipRepository, IApplicationSettings applicationSettings, IReferenceDataRepository referenceDataRepository, IPersonStatusRepository personStatusRepository, IShipTimeRepository shipTimeRepository)
 {
     this.guestRepository = guestRepository;
     this.shipRepository = shipRepository;
     this.referenceDataRepository = referenceDataRepository;
     this.personStatusRepository = personStatusRepository;
     this.applicationSettings = applicationSettings;
     this.shipTimeRepository = shipTimeRepository;
 }
Exemplo n.º 13
0
        public CreateUpdateGuestViewModel(IGuestRepository repository,
                                          IEventAggregator eventAggregator)
        {
            _repository      = repository;
            _eventAggregator = eventAggregator;

            SetupCommands();
            AttachEvents();
        }
 public ReservationService(
     IReservationRepository reservationRepository,
     IGuestRepository guestRepository,
     IRoomRepository roomRepository)
 {
     _reservationRepository = reservationRepository;
     _guestRepository       = guestRepository;
     _roomRepository        = roomRepository;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonAlertData"/> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="alertRepository">The alert repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 public PersonAlertData(IApplicationSettings applicationSettings, IAlertRepository alertRepository, IShipRepository shipRepository, IGuestRepository guestRepository, IShipTimeRepository shipTimeRepository, ICrewRepository crewRepository, IVisitorRepository visitorRepository)
 {
     this.applicationSettings = applicationSettings;
     this.alertClientRepository = alertRepository;
     this.shipRepository = shipRepository;
     this.guestRepository = guestRepository;
     this.shipTimeRepository = shipTimeRepository;
     this.crewClientRepository = crewRepository;
     this.visitorClientRepository = visitorRepository;
 }
Exemplo n.º 16
0
 public GuestController(
     IGuestRepository guestRepository,
     IGuestService guestService,
     IMapper mapper
     )
 {
     this.guestService    = guestService;
     this.guestRepository = guestRepository;
     this.mapper          = mapper;
 }
Exemplo n.º 17
0
 public HomeController(ILogger <HomeController> logger,
                       IGuestRepository guestRepo,
                       WeddingDbContext context,
                       IUserService userService)
 {
     _logger      = logger;
     _guestRepo   = guestRepo;
     _context     = context;
     _userService = userService;
 }
Exemplo n.º 18
0
 public GuestRegistrationContext(IRestaurantRepository restaurantRepository,
                                 IGuestRepository GuestRepository,
                                 IRegistrationRestaurantRole registrationRestaurantRole,
                                 IRegisteringGuestRole registeringGuestRole
                                 )
 {
     this.restaurantRepository       = restaurantRepository;
     this.GuestRepository            = GuestRepository;
     this.registrationRestaurantRole = registrationRestaurantRole;
     this.registeringGuestRole       = registeringGuestRole;
 }
Exemplo n.º 19
0
        public GuestQuery(IGuestRepository guestRepository)
        {
            Field <ListGraphType <GuestType> >("guests",
                                               arguments: new QueryArguments(new List <QueryArgument>
            {
                new QueryArgument <IntGraphType>
                {
                    Name = "id"
                },
                new QueryArgument <StringGraphType>
                {
                    Name = "firstName"
                },
                new QueryArgument <StringGraphType>
                {
                    Name = "lastName"
                },
                new QueryArgument <DateTimeGraphType>
                {
                    Name = "registerDate"
                }
            }),
                                               resolve: context =>
            {
                var query = guestRepository.GetGuests();

                var guestId = context.GetArgument <int?>("id");
                if (guestId.HasValue)
                {
                    return(query.Where(r => r.Id == guestId.Value));
                }

                var firstName = context.GetArgument <string>("firstName");
                if (!string.IsNullOrEmpty(firstName))
                {
                    return(query.Where(r => r.FirstName == firstName));
                }

                var lastName = context.GetArgument <string>("lastName");
                if (!string.IsNullOrEmpty(lastName))
                {
                    return(query.Where(r => r.LastName == lastName));
                }

                var registerDate = context.GetArgument <DateTime?>("registerDate");
                if (registerDate.HasValue)
                {
                    return(query.Where(r => r.RegisterDate == registerDate.Value));
                }

                return(query.ToList());
            }
                                               );
        }
 public PutOrderContext(
     IGuestRepository GuestRepository,
     IDishRepository dishRepository,
     IOrderRestaurantRole orderRestaurantRole,
     IOrderingGuestRole orderingGuestRole
     )
 {
     this.GuestRepository     = GuestRepository;
     this.dishRepository      = dishRepository;
     this.orderRestaurantRole = orderRestaurantRole;
     this.orderingGuestRole   = orderingGuestRole;
 }
Exemplo n.º 21
0
 public GuestStayController(
     IGuestRepository guestRepo,
     IGenericRepository <Service> serviceRepo,
     IGuestStayRepo guestStayRepo,
     IMapper mapper,
     GuestStayService guestStayService)
 {
     _guestRepo        = guestRepo;
     _serviceRepo      = serviceRepo;
     _guestStayRepo    = guestStayRepo;
     _mapper           = mapper;
     _guestStayService = guestStayService;
 }
Exemplo n.º 22
0
 public GuestStayService(IRoomRepository roomsRepo,
                         IGenericRepository <Stay> staysRepo,
                         IGuestRepository guestRepo,
                         IGenericRepository <Service> serviceRepo,
                         IGuestStayRepo guestStayRepo,
                         IMapper mapper)
 {
     _roomsRepo     = roomsRepo;
     _staysRepo     = staysRepo;
     _guestRepo     = guestRepo;
     _serviceRepo   = serviceRepo;
     _guestStayRepo = guestStayRepo;
     _mapper        = mapper;
 }
Exemplo n.º 23
0
 public GuestListController(WeddingDbContext context,
                            IGuestRepository guestRepository,
                            IWeddingRepository weddingRepository,
                            UserManager <IdentityUser> userManager,
                            SignInManager <IdentityUser> signInManager,
                            IUserService userService)
 {
     _context           = context;
     _guestRepository   = guestRepository;
     _weddingRepository = weddingRepository;
     _userManager       = userManager;
     _signInManager     = signInManager;
     _userService       = userService;
 }
Exemplo n.º 24
0
 public GuestMutation(IGuestRepository guestRepository)
 {
     Field <GuestType>(
         "createItem",
         arguments: new QueryArguments(
             new QueryArgument <NonNullGraphType <GuestInputType> > {
         Name = "guestInput"
     }
             ),
         resolve: context =>
     {
         var item = context.GetArgument <Guest>("guestInput");
         return(guestRepository.AddGuest(item));
     });
 }
 public ReservationController(IReservationRepository iReservationRepository, IGuestRepository iGuestRepository,
                              IRoomRepository iRoomRepository, IEmployeeRepository iEmployeeRepository, IUnitOfWork iUnitOfWork, HtmlEncoder htmlEncoder,
                              ICreateReservationMapper iCreateReservationMapper, IUpdateReservationMapper iUpdateReservationMapper,
                              IUpdateReservationValidationService iUpdateReservationValidationService)
 {
     this.iReservationRepository              = iReservationRepository;
     this.iGuestRepository                    = iGuestRepository;
     this.iEmployeeRepository                 = iEmployeeRepository;
     this.iRoomRepository                     = iRoomRepository;
     this.iUnitOfWork                         = iUnitOfWork;
     this.htmlEncoder                         = htmlEncoder;
     this.iCreateReservationMapper            = iCreateReservationMapper;
     this.iUpdateReservationMapper            = iUpdateReservationMapper;
     this.iUpdateReservationValidationService = iUpdateReservationValidationService;
 }
Exemplo n.º 26
0
        public CRRRequestFormBC(IDbFactory dbFactory, IDbFactory dbDocFactory) : base(dbFactory, dbDocFactory)
        {
            _complimentaryRepository = new ComplimentaryRepository(dbFactory);
            _attachmentRepository    = new Attachment.ComplimentaryRepository(dbDocFactory);
            _guestReposity           = new GuestRepository(dbFactory);
            _CheckItemRepository     = new ComplimentaryCheckItemRepository(dbFactory);

            AddActivities(new CRRSubmissionActivity());
            AddActivities(new HoDApprovalActivity());
            AddActivities(new CRRReservationReviewActivity());
            AddActivities(new GMApprovalActivity());
            AddActivities(new CRRReworkedActivity());

            AddActivities(new CRREditFormAcitvity(() => {
                return(CreateEmailData());
            }));
        }
        public GuestListWindowViewModel(IGuestRepository guestRepository, IUsersMessageService usersMessageService, Event currentEvent = null)
        {
            CurrentEvent        = currentEvent;
            _guestRepository    = guestRepository;
            _guestDataService   = new GuestDataService(guestRepository, usersMessageService);
            _searchGuestService = new SearchGuestService(guestRepository);
            CustomizedList      = new ObservableCollection <Guest>();

            AddGuestCommand       = new CustomCommand(AddGuest, CanAddGuest);
            EditGuestCommand      = new CustomCommand(EditGuest, CanEditGuest);
            DeleteGuestCommand    = new CustomCommand(DeleteGuest, CanDeleteGuest);
            SearchGuestCommand    = new CustomCommand(GuestSearcher, CanSearchGuest);
            LabelCommand          = new CustomCommand(LabelGuest, CanLabelGuest);
            PrintCommand          = new CustomCommand(PrintGuestList, CanPrintGuestList);
            SaveAsCommand         = new CustomCommand(SaveListAs, CanSaveListAs);
            CustomizedListCommand = new CustomCommand(CreateCustomizedList, CanCreateCustomizedList);
            ClearListCommand      = new CustomCommand(ClearList, CanClearList);
            RemoveGuestCommand    = new CustomCommand(RemoveGuest, CanRemoveGuest);
            AddToEventListCommand = new CustomCommand(AddList, CanAddList);
            ChangeEventCommand    = new CustomCommand(ChangeEvent, CanChangeEvent);


            LoadData();
        }
Exemplo n.º 28
0
 public GuestApplication(IGuestRepository guestRepository, IFileUploader fileUploader)
 {
     _guestRepository = guestRepository;
     _fileUploader    = fileUploader;
 }
 public NavController(IGuestRepository repo)
 {
     repository = repo;
 }
Exemplo n.º 30
0
 public HomeController(ILogger <HomeController> logger, IGuestRepository set, Record record)
 {
     _logger = logger;
     _set    = set;
     _record = record;
 }
Exemplo n.º 31
0
 public GuestService(IGuestRepository iGuestRepository)
 {
     _iGuestRepository = iGuestRepository;
 }
Exemplo n.º 32
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GuestManager" /> class.
 /// </summary>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="personRepository">The person repository.</param>
 /// <param name="referenceDataRepository">The reference data repository.</param>
 public GuestManager(IGuestRepository guestRepository, IPersonRepository personRepository, IReferenceDataRepository referenceDataRepository)
 {
     this.guestRepository = guestRepository;
     this.personRepository = personRepository;
     this.referenceDataRepository = referenceDataRepository;
 }
Exemplo n.º 33
0
 public HomeController(IGuestRepository guestRepository)
 {
     _guestsGuestRepository = guestRepository;
 }
Exemplo n.º 34
0
 public GuestController(IGuestRepository guestRepository)
 {
     this.guestRepository = guestRepository;
 }
Exemplo n.º 35
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertData" /> class.
 /// </summary>
 /// <param name="alertRepository">The alert repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="embarkationStatisticsRepository">The embarkation statistics repository.</param>
 public AlertData(IAlertRepository alertRepository, IVisitorRepository visitorRepository, IGuestRepository guestRepository, ICrewRepository crewRepository, IShipRepository shipRepository, IShipTimeRepository shipTimeRepository, IApplicationSettings applicationSettings, IEmbarkationStatisticsRepository embarkationStatisticsRepository)
 {
     this.alertRepository = alertRepository;
     this.visitorRepository = visitorRepository;
     this.guestRepository = guestRepository;
     this.crewRepository = crewRepository;
     this.shipRepository = shipRepository;
     this.applicationSettings = applicationSettings;
     this.shipTimeRepository = shipTimeRepository;
     this.embarkationStatisticsRepository = embarkationStatisticsRepository;
 }
Exemplo n.º 36
0
 public GuestsController(INLogger logger, IGuestRepository guestRepository)
     : base(logger)
 {
     _guestRepository = guestRepository;
 }
Exemplo n.º 37
0
 /// <summary>      
 /// Initialize the Service.
 /// </summary>
 public GuestService()
 {
     _guestRepository = new GuestRepository();
 }