Example #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);
 }
Example #2
0
        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;
        }
Example #4
0
 public AddCustomTagServiceTests()
 {
     _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>();
     _customTagStore          = Substitute.For <ICustomTagStore>();
     _customTagService        = new AddCustomTagService(_customTagStore, _customTagEntryValidator, NullLogger <AddCustomTagService> .Instance);
 }
Example #5
0
 public CustomTagEntryValidatorTests()
 {
     _customTagEntryValidator = new CustomTagEntryValidator(new DicomTagParser());
 }
Example #6
0
 public AddCustomTagServiceTests()
 {
     _customTagEntryValidator = Substitute.For <ICustomTagEntryValidator>();
     _customTagStore          = Substitute.For <ICustomTagStore>();
     _customTagService        = new AddCustomTagService(_customTagStore, _customTagEntryValidator);
 }