Пример #1
0
 public FlightsService(ISessionBagService sessionBag, IUserSessionService userSessionService, IBookingManager client,
                       IResourcesService resourcesService, IBookingService bookingService, ILogger <FlightsService> logger,
                       IOptions <AppSettings> appSettings, IPassengersService passengerService, ISsrsService ssrsService) : base(appSettings)
 {
     _sessionBag         = sessionBag ?? throw new ArgumentNullException(nameof(sessionBag));
     _userSessionService = userSessionService ?? throw new ArgumentNullException(nameof(userSessionService));
     _resourcesService   = resourcesService ?? throw new ArgumentNullException(nameof(resourcesService));
     _bookingService     = bookingService ?? throw new ArgumentNullException(nameof(bookingService));
     _bookingSettings    = appSettings.Value.AvailabilitySettings;
     _passengerService   = passengerService ?? throw new ArgumentNullException(nameof(passengerService));
     _ssrsService        = ssrsService ?? throw new ArgumentNullException(nameof(ssrsService));
     _perfLogSettings    = appSettings.Value.PerformanceLoggingSettings ?? throw new ArgumentNullException(nameof(appSettings));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _client             = client ?? throw new ArgumentNullException(nameof(client));
 }
Пример #2
0
 public SsrsController(ISsrsService ssrsService)
 {
     _ssrsService = ssrsService ?? throw new ArgumentNullException(nameof(ssrsService));
 }