public ExpiredFundsService(IExpiredFunds expiredFunds, ILevyDataSession levyDataSession, ITelemetry telemetry, IEmployerPaymentDataSession employerPaymentDataSession) { _expiredFunds = expiredFunds ?? throw new ArgumentNullException(nameof(expiredFunds)); _levyDataSession = levyDataSession ?? throw new ArgumentNullException(nameof(levyDataSession)); _telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); _employerPaymentDataSession = employerPaymentDataSession; }
public EmployerPayments(long employerAccountId, IEmployerPaymentDataSession dataSession) { if (employerAccountId <= 0) { throw new ArgumentOutOfRangeException(nameof(employerAccountId)); } _employerAccountId = employerAccountId; _dataSession = dataSession ?? throw new ArgumentNullException(nameof(dataSession)); }
public EmployerPaymentsRepository(IEmployerPaymentDataSession dataSession) { _dataSession = dataSession ?? throw new ArgumentNullException(nameof(dataSession)); }