public CustomTagServiceTests() { _reindexJob = Substitute.For <IReindexJob>(); _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>(); _customTagStore = Substitute.For <ICustomTagStore>(); _customTagService = new CustomTagService(_customTagStore, _reindexJob, _customTagEntryValidator, NullLogger <CustomTagService> .Instance); }
public AddCustomTagService(ICustomTagStore customTagStore, ICustomTagEntryValidator customTagEntryValidator) { EnsureArg.IsNotNull(customTagStore, nameof(customTagStore)); EnsureArg.IsNotNull(customTagEntryValidator, nameof(customTagEntryValidator)); _customTagStore = customTagStore; _customTagEntryValidator = customTagEntryValidator; }
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; }
public AddCustomTagServiceTests() { _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>(); _customTagStore = Substitute.For <ICustomTagStore>(); _customTagService = new AddCustomTagService(_customTagStore, _customTagEntryValidator, NullLogger <AddCustomTagService> .Instance); }
public CustomTagEntryValidatorTests() { _customTagEntryValidator = new CustomTagEntryValidator(new DicomTagParser()); }
public AddCustomTagServiceTests() { _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>(); _customTagStore = Substitute.For <ICustomTagStore>(); _customTagService = new AddCustomTagService(_customTagStore, _customTagEntryValidator); }