public CurrentBalanceRepository( IBalanceDataService dataService, IAccountBalanceService accountBalanceService, IEmployerCommitmentsRepository commitmentsRepository) { _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService)); _accountBalanceService = accountBalanceService ?? throw new ArgumentNullException(nameof(accountBalanceService)); _commitmentsRepository = commitmentsRepository ?? throw new ArgumentNullException(nameof(commitmentsRepository)); }
public AllowAccountProjectionsHandler( IEmployerPaymentsRepository repository, ILog logger, IApplicationConfiguration applicationConfiguration, IEmployerProjectionAuditService auditService, IEmployerCommitmentsRepository commitmentsRepository) { _paymentsRepository = repository ?? throw new ArgumentNullException(nameof(repository)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _applicationConfiguration = applicationConfiguration ?? throw new ArgumentNullException(nameof(applicationConfiguration)); _auditService = auditService ?? throw new ArgumentNullException(nameof(auditService)); _commitmentsRepository = commitmentsRepository ?? throw new ArgumentNullException(nameof(commitmentsRepository)); }