public SubmissionMetricsService(IPaymentLogger logger, ISubmissionSummaryFactory submissionSummaryFactory, IDcMetricsDataContextFactory dcMetricsDataContextFactory, ISubmissionMetricsRepository submissionRepository, ITelemetry telemetry) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.submissionSummaryFactory = submissionSummaryFactory ?? throw new ArgumentNullException(nameof(submissionSummaryFactory)); this.dcMetricsDataContextFactory = dcMetricsDataContextFactory ?? throw new ArgumentNullException(nameof(dcMetricsDataContextFactory)); this.submissionRepository = submissionRepository ?? throw new ArgumentNullException(nameof(submissionRepository)); this.telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); }
public PeriodEndMetricsService( IPaymentLogger logger, IPeriodEndSummaryFactory periodEndSummaryFactory, IDcMetricsDataContextFactory dcMetricsDataContextFactory, IPeriodEndMetricsRepository periodEndMetricsRepository, ITelemetry telemetry ) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.periodEndSummaryFactory = periodEndSummaryFactory ?? throw new ArgumentNullException(nameof(periodEndSummaryFactory)); this.dcMetricsDataContextFactory = dcMetricsDataContextFactory ?? throw new ArgumentNullException(nameof(dcMetricsDataContextFactory)); this.periodEndMetricsRepository = periodEndMetricsRepository ?? throw new ArgumentNullException(nameof(periodEndMetricsRepository)); this.telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); }