public CustomTagServiceTests() { _reindexJob = Substitute.For <IReindexJob>(); _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>(); _customTagStore = Substitute.For <ICustomTagStore>(); _customTagService = new CustomTagService(_customTagStore, _reindexJob, _customTagEntryValidator, NullLogger <CustomTagService> .Instance); }
public CustomTagService(ICustomTagStore customTagStore, IReindexJob reindexJob, ICustomTagEntryValidator customTagEntryValidator, ILogger <CustomTagService> logger) { EnsureArg.IsNotNull(customTagStore, nameof(customTagStore)); EnsureArg.IsNotNull(reindexJob, nameof(reindexJob)); EnsureArg.IsNotNull(customTagEntryValidator, nameof(customTagEntryValidator)); EnsureArg.IsNotNull(logger, nameof(logger)); _customTagStore = customTagStore; _reindexJob = reindexJob; _customTagEntryValidator = customTagEntryValidator; _logger = logger; }