public ReservationsController( ICarsService carsService, IReservationsService reservationsService, UserManager <ApplicationUser> userManager) { this.carsService = carsService; this.reservationsService = reservationsService; this.userManager = userManager; }
public PaymentsController( IPaymentsService paymentsService, IReservationsService reservationsService, IReservationPaymentsService reservationPaymentsService, IPaymentTypesService paymentTypesService) { this.paymentsService = paymentsService; this.reservationsService = reservationsService; this.reservationPaymentsService = reservationPaymentsService; this.paymentTypesService = paymentTypesService; }
public GetReservationsRequestHandler( IValidator <GetReservationsRequest> validator, ILog logger, IReservationsService service, IHashingService hashingService) { _validator = validator; _logger = logger; _service = service; _hashingService = hashingService; }
public ReservationsController( IReservationsService reservationsService, IEmailService emailService, ITokenGenerator tokenGenerator, IRepository <Hall> hallsRepository) { this.reservationsService = reservationsService; this.emailService = emailService; this.tokenGenerator = tokenGenerator; this.hallsRepository = hallsRepository; }
public PaymentsController( IReservationsService reservationsService, IPaymentsService paymentsService, IEmailSender emailSender, UserManager <ApplicationUser> userManager) { this.reservationsService = reservationsService; this.paymentsService = paymentsService; this.emailSender = emailSender; this.userManager = userManager; }
public TripsController( ICarsService carsService, ITripsService tripsService, IUsersService usersService, IReservationsService reservationsService, UserManager <ApplicationUser> userManager) { this.carsService = carsService; this.tripsService = tripsService; this.usersService = usersService; this.reservationsService = reservationsService; this.userManager = userManager; }
public ReservationsRunner ( ICarInformationService carInfoProvider, IUserInformationService userInfoProvider, IReservationsService reservationsService, IReservationsRepository reservationsRepository ) { _carInfoProvider = carInfoProvider; _userInfoProvider = userInfoProvider; _reservationsService = reservationsService; _reservationsRepository = reservationsRepository; }
public CalendarController( IRoomsService roomsService, IRoomTypesService roomTypesService, IReservationRoomsService reservationRoomsService, IReservationsService reservationsService, UserManager <HotelUser> userManager) { this.roomsService = roomsService; this.roomTypesService = roomTypesService; this.reservationRoomsService = reservationRoomsService; this.reservationsService = reservationsService; this.userManager = userManager; }
public RoomsController( IRoomsService roomsServices, IPeriodsService periodsServices, IReservationsService reservationsServices, IHotelsService hotelsService, UserManager <BookingUser> userManager) { this.roomsServices = roomsServices; this.periodsServices = periodsServices; this.reservationsServices = reservationsServices; this.hotelsService = hotelsService; this.userManager = userManager; }
public BulkUploadOrchestrator( IMediator mediator, BulkUploader bulkUploader, IHashingService hashingService, BulkUploadMapper mapper, IProviderCommitmentsLogger logger, IBulkUploadFileParser fileParser, IReservationsService reservationsService) : base(mediator, hashingService, logger) { _bulkUploader = bulkUploader; _mapper = mapper; _fileParser = fileParser; _reservationsService = reservationsService ?? throw new ArgumentNullException(nameof(reservationsService)); }
public IndexModel( UserManager <ApplicationUser> userManager, IHttpContextAccessor httpContextAccessor, IReservationsService reservationsService) { this.userManager = userManager; this.httpContextAccessor = httpContextAccessor; this.reservationsService = reservationsService; var userId = this.httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; var reservations = this.reservationsService.GetReservationsByUserIdAsync(userId).GetAwaiter().GetResult(); this.Reservations = reservations; }
public ReservationsController( IReservationsService reservationsService, IReservationStatusesService reservationStatusesService, IPaymentsService paymentsService, IReservationPaymentsService reservationPaymentsService, IEmailSender emailSender, UserManager <HotelUser> userManager) { this.reservationsService = reservationsService; this.reservationStatusesService = reservationStatusesService; this.paymentsService = paymentsService; this.reservationPaymentsService = reservationPaymentsService; this.emailSender = emailSender; this.userManager = userManager; }
public ReservationsControllerTests() { this.reservationsService = new Mock <IReservationsService>(MockBehavior.Strict).Object; this.emailService = new Mock <IEmailService>(MockBehavior.Strict).Object; this.tokenGenerator = new Mock <ITokenGenerator>(MockBehavior.Strict).Object; this.reservations = new Mock <IRepository <Reservation> >(MockBehavior.Strict).Object; this.halls = new Mock <IRepository <Hall> >(MockBehavior.Strict).Object; this.controller = new ReservationsController( this.reservationsService, this.emailService, this.tokenGenerator, this.reservations, this.halls ); }
public void Arrange() { _accountId = 123; _testData = JsonConvert.SerializeObject(new List <Reservation> { new Reservation { AccountId = _accountId } }); _mockReservationsApiClient = new Mock <IReservationsApiClient>(); _mockReservationsApiClient .Setup(m => m.Get(_accountId)) .ReturnsAsync(_testData); _sut = new ReservationsService(_mockReservationsApiClient.Object); }
public CommitmentOrchestrator(IMediator mediator, IHashingService hashingService, IProviderCommitmentsLogger logger, ApprenticeshipViewModelUniqueUlnValidator uniqueUlnValidator, ProviderApprenticeshipsServiceConfiguration configuration, IApprenticeshipCoreValidator apprenticeshipCoreValidator, IApprenticeshipMapper apprenticeshipMapper, IEncodingService encodingService, IReservationsService reservationsService) : base(mediator, hashingService, logger) { _uniqueUlnValidator = uniqueUlnValidator; _configuration = configuration; _apprenticeshipCoreValidator = apprenticeshipCoreValidator; _apprenticeshipMapper = apprenticeshipMapper; _encodingService = encodingService; _reservationsService = reservationsService; }
public AccommodationsController( UserManager <HotelUser> userManager, IRoomsService roomsService, IReservationsService reservationsService, IRoomTypesService roomTypesService, IReservationStatusesService reservationStatusesService, IPaymentTypesService paymentTypesService, IReservationRoomsService reservationRoomsService, IEmailSender emailSender) { this.userManager = userManager; this.roomsService = roomsService; this.reservationsService = reservationsService; this.roomTypesService = roomTypesService; this.reservationStatusesService = reservationStatusesService; this.paymentTypesService = paymentTypesService; this.reservationRoomsService = reservationRoomsService; this.emailSender = emailSender; }
public ReservationsController(IReservationsService ReservationService, UserManager <ApplicationUser> UserManager) { _reservationsService = ReservationService; _userManager = UserManager; }
public PaymentService(IPaymentRepository paymentRepository, IAccountsService accountsService, IReservationsService reservationsService) { _paymentRepository = paymentRepository; _accountsService = accountsService; _reservationsService = reservationsService; }
public RoomsController(IReservationsService reservationsService, IRoomsService roomsService, IPeriodsService periodsService) { this.reservationsService = reservationsService; this.roomsService = roomsService; this.periodsService = periodsService; }
public ReservationOrchestratorService(IReservationsService reservationsService, IVehiclesService vehiclesService) { this.reservationsService = reservationsService; this.vehiclesService = vehiclesService; }
public ReservationsController(IReservationsService service, IAuthRepository authRepo, ILoggingService logger) { _logger = logger; _reservationsService = service; _authRepository = authRepo; }
public ReservationDataModelsController(ApplicationDbContext context, IReservationsService reservationsService) { _context = context; this.reservationsService = reservationsService; }
public DashboardController(IUsersService usersService, IReservationsService reservationService) { this.usersService = usersService; this.reservationService = reservationService; }
public ReservationsController(IReservationsService service) { _service = service; }
public EventsReservationsController(ILogger <ApiController> logger, IReservationsService eventReservationsProvider) : base(logger) { _reservationsProvider = eventReservationsProvider; }
public GridController(IReservationsService reservations) { this.reservations = reservations; }
public ReservationsController(IReservationsService reservationService) { this.reservationsService = reservationService; }
public PeriodsController(IPeriodsService periodsService, IReservationsService reservationsService) { this.periodsService = periodsService; this.reservationsService = reservationsService; }
//------------- CONSTRUCTORS -------------- public ServiceTypesController(IServiceTypesService serviceTypesService, IReservationsService reservationsService, IOperatingLocationsService operatingLocationsService) { this.serviceTypesService = serviceTypesService; this.reservationsService = reservationsService; this.operatingLocationsService = operatingLocationsService; }
public ReservationsController() { this.data = new UoWData(); this.reservationsService = new ReservationsService(data); }
public ReservationsController(IReservationsService reservationsService, IRestaurantsService restaurantsService) { this.reservationsService = reservationsService; this.restaurantsService = restaurantsService; }
public ReservationsController(IReservationsService _svc) { svc = _svc; }
public ReservationsController(IRoomsService rooms, IReservationsService reservations) { this.rooms = rooms; this.reservations = reservations; }