public RetrieveMetadataServiceTests(DataStoreTestsFixture storagefixture)
 {
     _instanceStore           = Substitute.For <IInstanceStore>();
     _metadataStore           = storagefixture.MetadataStore;
     _eTagGenerator           = Substitute.For <IETagGenerator>();
     _retrieveMetadataService = new RetrieveMetadataService(_instanceStore, _metadataStore, _eTagGenerator);
 }
        public RetrieveMetadataServiceTests()
        {
            _instanceStore = Substitute.For <IInstanceStore>();
            _metadataStore = Substitute.For <IMetadataStore>();
            _eTagGenerator = Substitute.For <IETagGenerator>();

            _retrieveMetadataService = new RetrieveMetadataService(_instanceStore, _metadataStore, _eTagGenerator);
        }
Beispiel #3
0
        public RetrieveMetadataServiceTests()
        {
            _instanceStore = Substitute.For <IInstanceStore>();
            _metadataStore = Substitute.For <IMetadataStore>();
            _eTagGenerator = Substitute.For <IETagGenerator>();
            _dicomRequestContextAccessor = Substitute.For <IDicomRequestContextAccessor>();

            _dicomRequestContextAccessor.RequestContext.DataPartitionEntry = new PartitionEntry(DefaultPartition.Key, DefaultPartition.Name);

            _retrieveMetadataService = new RetrieveMetadataService(_instanceStore, _metadataStore, _eTagGenerator, _dicomRequestContextAccessor);
        }
Beispiel #4
0
        public RetrieveMetadataServiceTests(DataStoreTestsFixture storagefixture)
        {
            EnsureArg.IsNotNull(storagefixture, nameof(storagefixture));
            _instanceStore = Substitute.For <IInstanceStore>();
            _metadataStore = storagefixture.MetadataStore;
            _eTagGenerator = Substitute.For <IETagGenerator>();
            _dicomRequestContextAccessor = Substitute.For <IDicomRequestContextAccessor>();

            _dicomRequestContextAccessor.RequestContext.DataPartitionEntry = new PartitionEntry(DefaultPartition.Key, DefaultPartition.Name);

            _retrieveMetadataService = new RetrieveMetadataService(_instanceStore, _metadataStore, _eTagGenerator, _dicomRequestContextAccessor);
        }