Exemplo n.º 1
0
 public CustomTagServiceTests()
 {
     _reindexJob = Substitute.For <IReindexJob>();
     _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>();
     _customTagStore          = Substitute.For <ICustomTagStore>();
     _customTagService        = new CustomTagService(_customTagStore, _reindexJob, _customTagEntryValidator, NullLogger <CustomTagService> .Instance);
 }
Exemplo n.º 2
0
        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;
        }