public CifEditor(IInputStreamFactory inputStreamFactory, ICifRecordDefFactory recordDefFactory, IScheduleMatcher scheduleMatcher) { _inputStreamFactory = inputStreamFactory ?? throw new ArgumentNullException(nameof(inputStreamFactory)); _recordDefFactory = recordDefFactory ?? throw new ArgumentNullException(nameof(recordDefFactory)); _scheduleMatcher = scheduleMatcher ?? throw new ArgumentNullException(nameof(scheduleMatcher)); }
// private readonly IMailListCache _mailList; public DMCLService(OnlineSalesContext context, IHttpContextAccessor httpContext, IScheduleMatcher matcher, IAPIAuth apiAuth, IMailerService mail, ILogger <DMCLService> logger) : base(httpContext, context) { _matcher = matcher; _apiAuth = apiAuth; _logger = logger; _mail = mail; }
public CifEditorTest() { _inputStreamFactory = Substitute.For <IInputStreamFactory>(); _recordDefFactory = Substitute.For <ICifRecordDefFactory>(); _scheduleMatcher = Substitute.For <IScheduleMatcher>(); }