public GetAccountBalanceHandler(IAccountProjectionService accountProjectionService, ICurrentBalanceRepository currentBalanceRepository, ILog logger, ITelemetry telemetry)
 {
     _accountProjectionService = accountProjectionService;
     _currentBalanceRepository = currentBalanceRepository ?? throw new ArgumentNullException(nameof(currentBalanceRepository));
     _logger    = logger ?? throw new ArgumentNullException(nameof(logger));
     _telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry));
 }
Exemple #2
0
 public AccountProjectionRepository(ICurrentBalanceRepository currentBalanceRepository,
                                    ILevyDataSession levyDataSession, IAccountProjectionDataSession accountProjectionDataSession)
 {
     _currentBalanceRepository     = currentBalanceRepository ?? throw new ArgumentNullException(nameof(currentBalanceRepository));
     _levyDataSession              = levyDataSession ?? throw new ArgumentNullException(nameof(levyDataSession));
     _accountProjectionDataSession = accountProjectionDataSession ?? throw new ArgumentNullException(nameof(accountProjectionDataSession));
 }
Exemple #3
0
 public AccountEstimationProjectionRepository(ICurrentBalanceRepository currentBalanceRepository,
                                              IAccountProjectionDataSession accountProjectionRepository, IDateTimeService dateTimeService,
                                              ICommitmentModelListBuilder commitmentModelListBuilder)
 {
     _accountProjectionRepository = accountProjectionRepository;
     _dateTimeService             = dateTimeService;
     _commitmentModelListBuilder  = commitmentModelListBuilder ?? throw new ArgumentNullException(nameof(commitmentModelListBuilder));
     _currentBalanceRepository    = currentBalanceRepository ?? throw new ArgumentNullException(nameof(currentBalanceRepository));
 }
 public ForecastingOrchestrator(
     IHashingService hashingService,
     IAccountProjectionDataSession accountProjection,
     ICurrentBalanceRepository balanceRepository,
     IApplicationConfiguration applicationConfiguration,
     IForecastingMapper mapper,
     ICommitmentsDataService commitmentsDataService
     )
 {
     _hashingService           = hashingService ?? throw new ArgumentNullException(nameof(hashingService));
     _accountProjection        = accountProjection ?? throw new ArgumentNullException(nameof(accountProjection));
     _balanceRepository        = balanceRepository;
     _applicationConfiguration = applicationConfiguration ?? throw new ArgumentNullException(nameof(applicationConfiguration));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _commitmentsDataService = commitmentsDataService ?? throw new ArgumentNullException(nameof(commitmentsDataService));
 }
 public EstimationOrchestrator(IAccountEstimationProjectionRepository estimationProjectionRepository,
                               IAccountEstimationRepository estimationRepository,
                               IHashingService hashingService,
                               ICurrentBalanceRepository currentBalanceRepository,
                               IApprenticeshipCourseDataService apprenticeshipCourseService,
                               IExpiredFundsService expiredFundsService,
                               IApplicationConfiguration config)
 {
     _estimationProjectionRepository = estimationProjectionRepository ??
                                       throw new ArgumentNullException(nameof(estimationProjectionRepository));
     _estimationRepository =
         estimationRepository ?? throw new ArgumentNullException(nameof(estimationRepository));
     _hashingService           = hashingService ?? throw new ArgumentNullException(nameof(hashingService));
     _currentBalanceRepository = currentBalanceRepository ??
                                 throw new ArgumentNullException(nameof(currentBalanceRepository));
     _apprenticeshipCourseService = apprenticeshipCourseService;
     _expiredFundsService         = expiredFundsService;
     _config = config;
 }