public ProviderPaymentsEventModelBatchProcessor(IPaymentsEventModelCache <ProviderPaymentEventModel> cache, IPaymentsEventModelDataTable <ProviderPaymentEventModel> dataTable, IConfigurationHelper configurationHelper, IPaymentLogger logger, IDataCache <ReceivedProviderEarningsEvent> ilrSubmittedEventCache) : base(cache, dataTable, configurationHelper, logger) { this.ilrSubmittedEventCache = ilrSubmittedEventCache ?? throw new ArgumentNullException(nameof(ilrSubmittedEventCache)); }
public PaymentsEventModelBatchProcessor( IPaymentsEventModelCache <T> cache, IPaymentsEventModelDataTable <T> dataTable, IConfigurationHelper configurationHelper, IPaymentLogger logger) { this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); this.dataTable = dataTable ?? throw new ArgumentNullException(nameof(dataTable)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); connectionString = configurationHelper.GetConnectionString("PaymentsConnectionString") ?? throw new ArgumentException("Failed to find the PaymentsConnectionString in the ConnectionStrings section."); }