public HandleIlrSubmissionService(IProviderPaymentsRepository providerPaymentsRepository, IDataCache <ReceivedProviderEarningsEvent> ilrSubmittedEventCache, IValidateIlrSubmission validateIlrSubmission, IPaymentLogger logger) { this.providerPaymentsRepository = providerPaymentsRepository; this.ilrSubmittedEventCache = ilrSubmittedEventCache; this.validateIlrSubmission = validateIlrSubmission; this.logger = logger; }
public ProviderPaymentsService(IDataCache <ReceivedProviderEarningsEvent> ilrSubmittedEventCache, IPaymentsEventModelCache <ProviderPaymentEventModel> paymentCache, IValidateIlrSubmission validateIlrSubmission, IPaymentLogger paymentLogger, ITelemetry telemetry) { this.ilrSubmittedEventCache = ilrSubmittedEventCache; this.paymentCache = paymentCache ?? throw new ArgumentNullException(nameof(paymentCache)); this.validateIlrSubmission = validateIlrSubmission; this.paymentLogger = paymentLogger; this.telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); }