コード例 #1
0
 public EmployerUserRepository(ILog logger, IEmployerUsersApiClient employerUsersApiClient,
                               IAccountApiClient employerAccountsApiClient)
 {
     _logger = logger;
     _employerUsersApiClient    = employerUsersApiClient;
     _employerAccountsApiClient = employerAccountsApiClient;
 }
コード例 #2
0
 public ProcessFullyApprovedCohortCommandHandler(IAccountApiClient accountApiClient, Lazy <ProviderCommitmentsDbContext> db, IEventPublisher eventPublisher, ILogger <ProcessFullyApprovedCohortCommandHandler> logger)
 {
     _accountApiClient = accountApiClient;
     _db             = db;
     _eventPublisher = eventPublisher;
     _logger         = logger;
 }
コード例 #3
0
 public AccountApiHealthCheck(
     IAccountApiClient apiClient,
     ILogger <AccountApiHealthCheck> logger)
 {
     _apiClient = apiClient;
     _logger    = logger;
 }
 public AccountBalanceService(IAccountApiClient accountApiClient,
                              IHashingService hashingService, ITelemetry telemetry)
 {
     _accountApiClient = accountApiClient ?? throw new ArgumentNullException(nameof(accountApiClient));
     _hashingService   = hashingService ?? throw new ArgumentNullException(nameof(hashingService));
     _telemetry        = telemetry ?? throw new ArgumentNullException(nameof(telemetry));
 }
 public DetailsViewModelMapper(ICommitmentsApiClient commitmentsApiClient, IEncodingService encodingService,
                               IAccountApiClient accountsApiClient)
 {
     _commitmentsApiClient = commitmentsApiClient;
     _encodingService      = encodingService;
     _accountsApiClient    = accountsApiClient;
 }
コード例 #6
0
        public AccountController(IAccountApiClient accountApiClient, ITokenApiClient tokenApiClient, ILoginService loginManager, IMapper mapper)
        {
            _accountApiClient = accountApiClient;
            _tokenApiClient   = tokenApiClient;

            _loginManager = loginManager;
            _mapper       = mapper;
        }
コード例 #7
0
 public RequestEmploymentCheckForEmployerPayeSchemesCommand(IMessagePublisher messagePublisher, IAccountApiClient accountApiClient, IProviderCommitmentsApi commitmentsApi, ISubmissionEventRepository repository, IEventsApi eventsApi, ILog logger)
 {
     _messagePublisher       = messagePublisher;
     _accountApiClient       = accountApiClient;
     _commitmentsApi         = commitmentsApi;
     _employmentCheckService = new EmploymentCheckCompletedService(eventsApi, repository);
     _logger = logger;
 }
コード例 #8
0
 public EmployerHasLegalEntityQueryHandler(
     IAccountApiClient accountApiClient,
     ILogger <EmployerHasLegalEntityQueryHandler> logger
     )
 {
     _accountApi = accountApiClient;
     _logger     = logger;
 }
 public GetTransactionsDownloadQueryHandler(
     ITransactionFormatterFactory transactionsFormatterFactory,
     ITransactionRepository transactionRepository,
     IAccountApiClient accountApiClient)
 {
     _transactionsFormatterFactory = transactionsFormatterFactory;
     _transactionRepository        = transactionRepository;
     _accountApiClient             = accountApiClient;
 }
コード例 #10
0
        public async Task Reset()
        {
            await Context.Reset();

            CommitmentsApi = Substitute.For <ICommitmentsApiClient>();
            RoatpApi       = Substitute.For <IRoatpService>();
            AccountsApi    = Substitute.For <IAccountApiClient>();
            TimeProvider   = Substitute.For <ITimeProvider>();
        }
コード例 #11
0
 public SendingEmployerTransferRequestEmailService(ICommitmentRepository commitmentRepository,
                                                   IAccountApiClient accountApi,
                                                   ILog logger)
 {
     _commitmentRepository = commitmentRepository;
     _accountApi           = accountApi;
     _logger      = logger;
     _retryPolicy = GetRetryPolicy();
 }
 public EmployerFeedbackDataRetrievalService(
     IEmployerCommitmentApi commitmentApiClient,
     IAccountApiClient accountApiClient,
     IStoreEmployerEmailDetails emailDetailsRepository)
 {
     _commitmentApiClient    = commitmentApiClient;
     _accountApiClient       = accountApiClient;
     _emailDetailsRepository = emailDetailsRepository;
 }
コード例 #13
0
    internal static async Task Reset()
    {
        await Context.Reset();

        Context        = new ScopedContext(scopeFactory);
        CommitmentsApi = Substitute.For <ICommitmentsApiClient>();
        RoatpApi       = Substitute.For <IRoatpService>();
        AccountsApi    = Substitute.For <IAccountApiClient>();
        TimeProvider   = Substitute.For <ITimeProvider>();
    }
コード例 #14
0
 public ProviderRelationshipsService(IOptions <ProviderRelationshipApiConfiguration> configuration,
                                     ILogger <ProviderRelationshipApiConfiguration> logger,
                                     IEmployerAccountProvider employerAccountProvider,
                                     IAccountApiClient accountApiClient)
 {
     _configuration           = configuration.Value;
     _logger                  = logger;
     _employerAccountProvider = employerAccountProvider;
     _accountApiClient        = accountApiClient;
 }
コード例 #15
0
 public EmployerAlertSummaryEmailService(
     IApprenticeshipRepository apprenticeshipRepository,
     IAccountApiClient accountApi,
     ILog logger)
 {
     _apprenticeshipRepository = apprenticeshipRepository;
     _accountApi  = accountApi;
     _logger      = logger;
     _retryPolicy = GetRetryPolicy();
 }
コード例 #16
0
        public EmployerAgreementService(IAccountApiClient accountApiClient, IEncodingService encodingService, ILogger <EmployerAgreementService> logger)
        {
            _accountApiClient = accountApiClient;
            _encodingService  = encodingService;
            _logger           = logger;

            //This dictionary indicates which features are unlocked by agreement versions
            _agreementUnlocks = new Dictionary <AgreementFeature, int> {
                { AgreementFeature.Transfers, 2 }
            };
        }
コード例 #17
0
 public EmployerTeamOrchestrator(IMediator mediator,
                                 ICurrentDateTime currentDateTime,
                                 IAccountApiClient accountApiClient,
                                 IMapper mapper)
     : base(mediator)
 {
     _mediator         = mediator;
     _currentDateTime  = currentDateTime;
     _accountApiClient = accountApiClient;
     _mapper           = mapper;
 }
コード例 #18
0
 public EmployerAccountTransactionsOrchestrator(
     IAccountApiClient accountApiClient,
     IMediator mediator,
     ICurrentDateTime currentTime,
     ILog logger)
 {
     _accountApiClient = accountApiClient;
     _mediator         = mediator;
     _currentTime      = currentTime;
     _logger           = logger;
 }
 public AccountRepository(IAccountApiClient accountApiClient,
                          IPayeSchemeObfuscator payeSchemeObfuscator,
                          IDatetimeService datetimeService,
                          ILog logger,
                          IHashingService hashingService)
 {
     _accountApiClient     = accountApiClient;
     _payeSchemeObfuscator = payeSchemeObfuscator;
     _datetimeService      = datetimeService;
     _logger         = logger;
     _hashingService = hashingService;
 }
コード例 #20
0
 public ProviderEmailTemplatesService(
     IApprenticeshipRepository apprenticeshipRepository,
     ICommitmentsLogger logger,
     IProviderEmailServiceWrapper emailService,
     IAccountApiClient providerAccountClient)
 {
     _apprenticeshipRepository = apprenticeshipRepository;
     _logger                = logger;
     _emailService          = emailService;
     _providerAccountClient = providerAccountClient;
     _retryPolicy           = GetRetryPolicy();
 }
コード例 #21
0
 public SaveApprenticeshipFavouriteBasketCommandHandler(
     ILogger <SaveApprenticeshipFavouriteBasketCommandHandler> logger,
     IFavouritesReadRepository readRepository,
     IFavouritesWriteRepository writeRepository,
     IAccountApiClient accountApiClient,
     IApprenticeshipFavouritesBasketStore basketStore)
 {
     _logger           = logger;
     _readRepository   = readRepository;
     _writeRepository  = writeRepository;
     _accountApiClient = accountApiClient;
     _basketStore      = basketStore;
 }
コード例 #22
0
 public ManageLevyAccountBalanceService(IAccountApiClient accountApiClient,
                                        IPaymentLogger logger,
                                        ILevyAccountBulkCopyRepository levyAccountBulkWriter,
                                        ILevyFundingSourceRepository levyFundingSourceRepository,
                                        int batchSize,
                                        IEndpointInstanceFactory endpointInstanceFactory)
 {
     this.accountApiClient            = accountApiClient ?? throw new ArgumentNullException(nameof(accountApiClient));
     this.logger                      = logger ?? throw new ArgumentNullException(nameof(logger));
     this.levyAccountBulkWriter       = levyAccountBulkWriter ?? throw new ArgumentNullException(nameof(levyAccountBulkWriter));
     this.levyFundingSourceRepository = levyFundingSourceRepository ?? throw new ArgumentNullException(nameof(levyFundingSourceRepository));
     this.batchSize                   = batchSize;
     this.endpointInstanceFactory     = endpointInstanceFactory ?? throw new ArgumentNullException(nameof(endpointInstanceFactory));
 }
コード例 #23
0
 public EmployerTeamOrchestratorWithCallToAction(
     EmployerTeamOrchestrator employerTeamOrchestrator,
     IMediator mediator,
     ICurrentDateTime currentDateTime,
     IAccountApiClient accountApiClient,
     IMapper mapper,
     ICookieStorageService <AccountContext> accountContext,
     ILog logger)
     : base(mediator, currentDateTime, accountApiClient, mapper)
 {
     _employerTeamOrchestrator = employerTeamOrchestrator;
     _accountContext           = accountContext;
     _mediator = mediator;
     _mapper   = mapper;
     _logger   = logger;
 }
コード例 #24
0
        public ManageLevyAccountBalanceService(ILevyFundingSourceRepository repository,
                                               IAccountApiClient accountApiClient,
                                               IPaymentLogger logger,
                                               ILevyAccountBulkCopyRepository levyAccountBulkWriter,
                                               int batchSize,
                                               IEndpointInstanceFactory endpointInstanceFactory)
        {
            this.repository              = repository;
            this.accountApiClient        = accountApiClient;
            this.logger                  = logger;
            this.levyAccountBulkWriter   = levyAccountBulkWriter;
            this.batchSize               = batchSize;
            this.endpointInstanceFactory = endpointInstanceFactory;

            retryPolicy = Policy.Handle <Exception>().WaitAndRetryAsync(5, i => TimeSpan.FromMinutes(1));
        }
コード例 #25
0
        public EmployerEmailTemplatesService(
            IApprenticeshipRepository apprenticeshipRepository,
            IAccountApiClient accountApi,
            ILog logger)
        {
            if (apprenticeshipRepository == null)
            {
                throw new ArgumentNullException($"{nameof(apprenticeshipRepository)} is null");
            }
            if (accountApi == null)
            {
                throw new ArgumentNullException($"{nameof(accountApi)} is null");
            }
            if (logger == null)
            {
                throw new ArgumentNullException($"{nameof(logger)} is null");
            }

            _apprenticeshipRepository = apprenticeshipRepository;
            _accountApi  = accountApi;
            _logger      = logger;
            _retryPolicy = GetRetryPolicy();
        }
 public CohortDomainService(Lazy <ProviderCommitmentsDbContext> dbContext,
                            ILogger <CohortDomainService> logger,
                            IAcademicYearDateProvider academicYearDateProvider,
                            IUlnValidator ulnValidator,
                            IReservationValidationService reservationValidationService,
                            IOverlapCheckService overlapCheckService,
                            IAuthenticationService authenticationService,
                            ICurrentDateTime currentDateTime,
                            IEmployerAgreementService employerAgreementService,
                            IEncodingService encodingService,
                            IAccountApiClient accountApiClient)
 {
     _dbContext = dbContext;
     _logger    = logger;
     _academicYearDateProvider     = academicYearDateProvider;
     _ulnValidator                 = ulnValidator;
     _reservationValidationService = reservationValidationService;
     _overlapCheckService          = overlapCheckService;
     _authenticationService        = authenticationService;
     _currentDateTime              = currentDateTime;
     _employerAgreementService     = employerAgreementService;
     _encodingService              = encodingService;
     _accountApiClient             = accountApiClient;
 }
コード例 #27
0
 public IdentityAuthenticationStateProvider(IAccountApiClient accountApiClient)
 {
     _accountApiClient = accountApiClient;
 }
 public EmployerAccountService(IAccountApiClient accountApiClient)
 {
     _accountApiClient = accountApiClient;
 }
コード例 #29
0
 public InformRequestToSelectTransferConnectionViewModelMapper(IAccountApiClient accountApiClient)
 {
     _accountsApiClient = accountApiClient;
 }
 public EmployerAccountService(ILogger <EmployerAccountService> logger, IAccountApiClient accountApiClient)
 {
     _logger           = logger;
     _accountApiClient = accountApiClient;
 }