Exemplo n.º 1
0
 public DataLockController(
     ManageApprenticesOrchestrator orchestrator2,
     DataLockOrchestrator orchestrator,
     ICookieStorageService <FlashMessageViewModel> flashMessage) : base(flashMessage)
 {
     _orchestrator = orchestrator;
 }
Exemplo n.º 2
0
 public EmployerAccountTransactionsController(IOwinWrapper owinWrapper, IFeatureToggle featureToggle,
                                              EmployerAccountTransactionsOrchestrator accountTransactionsOrchestrator, IMultiVariantTestingService multiVariantTestingService,
                                              ICookieStorageService <FlashMessageViewModel> flashMessage)
     : base(owinWrapper, featureToggle, multiVariantTestingService, flashMessage)
 {
     _accountTransactionsOrchestrator = accountTransactionsOrchestrator;
 }
Exemplo n.º 3
0
 public CustomerController(ICookieStorageService cookieStorageService,
                           ICustomerService customerService,
                           IFormsAuthentication formsAuthentication) : base(cookieStorageService)
 {
     _customerService     = customerService;
     _formsAuthentication = formsAuthentication;
 }
Exemplo n.º 4
0
        public BasketController(IProductCatalogService productCatalogService, IBasketService basketService,
								ICookieStorageService cookieStorageService)
            : base(cookieStorageService, productCatalogService)
        {
            _basketService = basketService;
            _cookieStorageService = cookieStorageService;
        }
Exemplo n.º 5
0
 public EmployerManageApprenticesController(
     IAuthenticationService owinWrapper,
     IAuthorizationService authorization,
     ICookieStorageService <FlashMessageViewModel> flashMessage)
     : base(owinWrapper, flashMessage)
 {
 }
 public ProductCatalogBaseController(
     ICookieStorageService cookieStorageService,
     IProductCatalogService productCatalogService)
     : base(cookieStorageService)
 {
     _productCatalogService = productCatalogService;
 }
Exemplo n.º 7
0
 private static OidcMiddlewareOptions GetOidcMiddlewareOptions(EmployerAccountsConfiguration config,
                                                               ICookieStorageService <EmployerAccountData> accountDataCookieStorageService,
                                                               ICookieStorageService <HashedAccountIdModel> hashedAccountIdCookieStorageService,
                                                               Constants constants)
 {
     return(new OidcMiddlewareOptions
     {
         AuthenticationType = CookieAuthenticationDefaults.AuthenticationType,
         BaseUrl = config.Identity.BaseAddress,
         ClientId = config.Identity.ClientId,
         ClientSecret = config.Identity.ClientSecret,
         Scopes = config.Identity.Scopes,
         AuthorizeEndpoint = constants.AuthorizeEndpoint(),
         TokenEndpoint = constants.TokenEndpoint(),
         UserInfoEndpoint = constants.UserInfoEndpoint(),
         TokenSigningCertificateLoader = GetSigningCertificate(config.Identity.UseCertificate),
         TokenValidationMethod = config.Identity.UseCertificate ? TokenValidationMethod.SigningKey : TokenValidationMethod.BinarySecret,
         AuthenticatedCallback = identity =>
         {
             PostAuthentiationAction(
                 identity,
                 constants,
                 accountDataCookieStorageService,
                 hashedAccountIdCookieStorageService);
         }
     });
 }
 public BasketController(IProductCatalogService productCatalogueService,
                         IBasketService basketService,
                         ICookieStorageService cookieStorageService) : base(cookieStorageService, productCatalogueService)
 {
     _basketService        = basketService;
     _cookieStorageService = cookieStorageService;
 }
 public CookieConsentController(
     IAuthenticationService owinWrapper,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage
     ) : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
 }
 protected EmployerVerificationOrchestratorBase(IMediator mediator, ILog logger, ICookieStorageService <EmployerAccountData> cookieService, EmployerAccountsConfiguration configuration)
 {
     Mediator      = mediator;
     Logger        = logger;
     CookieService = cookieService;
     Configuration = configuration;
 }
 public ProductCatalogBaseController(
                   ICookieStorageService cookieStorageService,
                   IProductCatalogService productCatalogService)
     : base(cookieStorageService)
 {
     _productCatalogService = productCatalogService;
 }
Exemplo n.º 12
0
 public QueueController(ICookieStorageService cookieStorageService,
     MultipleFamilyService multipleFamilyService)
     : base(cookieStorageService)
 {
     _cookieStorageService = cookieStorageService;
     _multipleFamilyService = multipleFamilyService;
 }
Exemplo n.º 13
0
 public TransferRequestController(EmployerCommitmentsOrchestrator orchestrator, IOwinWrapper owinWrapper,
                                  IMultiVariantTestingService multiVariantTestingService, ICookieStorageService <FlashMessageViewModel> flashMessage,
                                  ICookieStorageService <string> lastCohortCookieStorageService, ILinkGenerator linkGenerator)
     : base(orchestrator, owinWrapper, multiVariantTestingService, flashMessage, lastCohortCookieStorageService)
 {
     _linkGenerator = linkGenerator;
 }
Exemplo n.º 14
0
 public ApprenticeController(IModelMapper modelMapper, ICookieStorageService <IndexRequest> cookieStorage, ICommitmentsApiClient commitmentsApiClient, ILogger <ApprenticeController> logger)
 {
     _modelMapper          = modelMapper;
     _cookieStorage        = cookieStorage;
     _commitmentsApiClient = commitmentsApiClient;
     _logger = logger;
 }
Exemplo n.º 15
0
 public OrderController(ICustomerService customerService, IOrderService orderService, IFormsAuthentication formsAuthentication, ICookieStorageService cookieStorageService)
     : base(cookieStorageService)
 {
     _customerService = customerService;
     _orderService = orderService;
     _formsAuthentication = formsAuthentication;
 }
Exemplo n.º 16
0
 public EmployerAccountOrchestrator(IMediator mediator, ILog logger, ICookieStorageService <EmployerAccountData> cookieService,
                                    EmployerAccountsConfiguration configuration)
     : base(mediator, cookieService, configuration)
 {
     _mediator = mediator;
     _logger   = logger;
 }
Exemplo n.º 17
0
 public GoogleAnalyticsFilter(ICookieStorageService <LocationCookieItem> locationCookieStorageService,
                              IDataProtectionProvider provider, ILogger <GoogleAnalyticsFilter> logger)
 {
     _locationCookieStorageService = locationCookieStorageService;
     _logger    = logger;
     _protector = provider.CreateProtector(Constants.GaDataProtectorName);
 }
Exemplo n.º 18
0
 public OrganisationOrchestrator(IMediator mediator, ILogger logger, IMapper mapper, ICookieStorageService <EmployerAccountData> cookieService)
     : base(mediator)
 {
     _mediator      = mediator;
     _logger        = logger;
     _mapper        = mapper;
     _cookieService = cookieService;
 }
 public EmployerAccountController(IAuthenticationService owinWrapper, EmployerAccountOrchestrator employerAccountOrchestrator,
                                  IAuthorizationService authorization, IMultiVariantTestingService multiVariantTestingService, ILog logger,
                                  ICookieStorageService <FlashMessageViewModel> flashMessage)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _employerAccountOrchestrator = employerAccountOrchestrator;
     _logger = logger;
 }
 protected BaseEmployerController(IEmployerCommitmentsOrchestrator orchestrator, IOwinWrapper owinWrapper,
                                  IMultiVariantTestingService multiVariantTestingService, ICookieStorageService <FlashMessageViewModel> flashMessage,
                                  ICookieStorageService <string> lastCohortCookieStorageService)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     Orchestrator = orchestrator;
     _lastCohortCookieStorageService = lastCohortCookieStorageService;
 }
Exemplo n.º 21
0
 public SettingsController(IAuthenticationService owinWrapper,
                           UserSettingsOrchestrator userSettingsOrchestrator,
                           IMultiVariantTestingService multiVariantTestingService,
                           ICookieStorageService <FlashMessageViewModel> flashMessage)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _userSettingsOrchestrator = userSettingsOrchestrator;
 }
Exemplo n.º 22
0
 public ApprenticeController(IModelMapper modelMapper, ICookieStorageService <IndexRequest> cookieStorage, ICommitmentsApiClient commitmentsApiClient, ILinkGenerator linkGenerator, ILogger <ApprenticeController> logger, IAuthorizationService authorizationService)
 {
     _modelMapper          = modelMapper;
     _cookieStorage        = cookieStorage;
     _commitmentsApiClient = commitmentsApiClient;
     _linkGenerator        = linkGenerator;
     _logger = logger;
     _authorizationService = authorizationService;
 }
Exemplo n.º 23
0
 public CreateCohortController(ICookieStorageService <FlashMessageViewModel> flashMessage,
                               SelectEmployerOrchestrator selectEmployerOrchestrator, CreateCohortOrchestrator createCohortOrchestrator,
                               IFeatureToggleService featureToggleService, ILinkGenerator providerUrlhelper) : base(flashMessage)
 {
     _selectEmployerOrchestrator = selectEmployerOrchestrator;
     _createCohortOrchestrator   = createCohortOrchestrator;
     _featureToggleService       = featureToggleService;
     _providerUrlhelper          = providerUrlhelper;
 }
Exemplo n.º 24
0
 public CheckoutController(ICookieStorageService cookieStorageService, ICustomerService customerService,
     IFormsAuthentication formsAuthentication, IMembershipService membershipService, IOrderService orderService)
 {
     _cookieStorageService = cookieStorageService;
     _customerService = customerService;
     _formsAuthentication = formsAuthentication;
     _membershipService = membershipService;
     _orderService = orderService;
 }
Exemplo n.º 25
0
 public CommitmentController(CommitmentOrchestrator commitmentOrchestrator, ILog logger, ICookieStorageService <FlashMessageViewModel> flashMessage,
                             ICookieStorageService <string> lastCohortCookieStorageService, IFeatureToggleService featureToggleService, ProviderUrlHelper.LinkGenerator providerUrlhelper) : base(flashMessage)
 {
     _commitmentOrchestrator = commitmentOrchestrator;
     _logger = logger;
     _lastCohortCookieStorageService = lastCohortCookieStorageService;
     _featureToggleService           = featureToggleService;
     _providerUrlhelper = providerUrlhelper;
 }
 public ReportController(IMediator mediator,
                         ILog logger, IAuthenticationService owinWrapper,
                         IMultiVariantTestingService multiVariantTestingService,
                         ICookieStorageService <FlashMessageViewModel> flashMessage)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _mediator = mediator;
     _logger   = logger;
 }
 public DataLockController(
     IOwinWrapper owinWrapper,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage,
     DataLockOrchestrator orchestrator
     ) : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _orchestrator = orchestrator;
 }
Exemplo n.º 28
0
 public CheckoutController(ICookieStorageService cookieStorageService, IBasketService basketService, ICustomerService customerService, IOrderService orderService, IFormsAuthentication formsAuthentication)
     : base(cookieStorageService)
 {
     _cookieStorageService = cookieStorageService;
     _basketService = basketService;
     _customerService = customerService;
     _orderService = orderService;
     _formsAuthentication = formsAuthentication;
 }
 public EmployerTeamController(
     IAuthenticationService owinWrapper,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage,
     EmployerTeamOrchestrator employerTeamOrchestrator)
     : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _employerTeamOrchestrator = employerTeamOrchestrator;
 }
Exemplo n.º 30
0
 public CheckoutController(ICookieStorageService cookieStorageService, ICustomerService customerService,
                           IFormsAuthentication formsAuthentication, IMembershipService membershipService, IOrderService orderService)
 {
     _cookieStorageService = cookieStorageService;
     _customerService      = customerService;
     _formsAuthentication  = formsAuthentication;
     _membershipService    = membershipService;
     _orderService         = orderService;
 }
 public BaseController(
     IOwinWrapper owinWrapper,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage)
 {
     OwinWrapper = owinWrapper;
     _multiVariantTestingService = multiVariantTestingService;
     _flashMessage = flashMessage;
 }
Exemplo n.º 32
0
 public BaseController(
     ICookieStorageService cookieStorageService
     , IErrorLogService errorLogService
     , IApplicationConfiguration applicationConfiguration
     )
 {
     _cookieStorageService     = cookieStorageService;
     _errorLogService          = errorLogService;
     _applicationConfiguration = applicationConfiguration;
 }
Exemplo n.º 33
0
 public EmployerAgreementController(IAuthenticationService owinWrapper,
                                    IAuthorizationService authorization,
                                    ICookieStorageService <FlashMessageViewModel> flashMessage)
     : base(owinWrapper, flashMessage)
 {
     if (owinWrapper == null)
     {
         throw new ArgumentNullException(nameof(owinWrapper));
     }
 }
Exemplo n.º 34
0
 public CheckoutController(ICookieStorageService cookieStorageService,
                           IBasketService basketService,
                           ICustomerService customerService,
                           IOrderService orderService,
                           ICookieAuthentication cookieAuthentication) : base(cookieAuthentication,
                                                                              customerService)
 {
     _basketService = basketService;
     _orderService  = orderService;
 }
Exemplo n.º 35
0
 public TaskController(
     IAuthenticationService owinWrapper,
     TaskOrchestrator taskOrchestrator,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage,
     ILog logger) : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _orchestrator = taskOrchestrator;
     _logger       = logger;
 }
Exemplo n.º 36
0
 public ProductController(ICookieStorageService cookieStorageService,
                          IConfiguration configuration,
                          ICookieAuthentication cookieAuthentication,
                          ICustomerService customerService,
                          ICachedProductCatalogService cachedProductCatalogService) : base(cookieAuthentication,
                                                                                           customerService,
                                                                                           cachedProductCatalogService)
 {
     _configuration = configuration;
 }
Exemplo n.º 37
0
        public SearchController(ICookieStorageService cookieStorageService,
            PropertyControllerConfigurationProvider configurationProvider,
            PropertyService service)
            : base(cookieStorageService)
        {
            if (configurationProvider == null)
                throw new ArgumentNullException("configurationProvider");

            _configurationProvider = configurationProvider;

            if (service == null)
                throw new ArgumentNullException("service");

            _service = service;
        }
Exemplo n.º 38
0
 public PaymentController(ICookieStorageService cookieStorageService, IPaymentService paymentService, IOrderService orderService)
     : base(cookieStorageService)
 {
     _paymentService = paymentService;
     _orderService = orderService;
 }
 public ProductController(IProductCatalogueService productService,                                    
                          ICookieStorageService cookieStorageService)
     : base(cookieStorageService, productService)
 {
     _productService = productService;
 }
Exemplo n.º 40
0
 public CartController(IAlbumService albumService, ICartService cartService, ICookieStorageService cookieStorageService)
 {
     _albumService = albumService;
     _cartService = cartService;
     _cookieStorageService = cookieStorageService;
 }
 public BaseController(ICookieStorageService cookieStorageService)
 {
     _cookieStorageService = cookieStorageService;            
 }