Exemplo n.º 1
0
        public void Initialize( )
        {
            DicomHelper      = new DicomHelpers( );
            DataAccessHelper = new DataAccessHelpers( );
            var storagePath    = DicomHelpers.GetTestDataFolder("storage", true);
            var mediaIdFactory = new DicomMediaIdFactory( );


            MediaStorageService         storageService = new FileStorageService(storagePath);
            IObjectArchieveQueryService queryService   = new ObjectArchieveQueryService(DataAccessHelper.DataAccess);

            var factory = new Pacs.Commands.DCloudCommandFactory(storageService,
                                                                 DataAccessHelper.DataAccess,
                                                                 new DicomMediaWriterFactory(storageService,
                                                                                             mediaIdFactory),
                                                                 mediaIdFactory);

            StoreService = new ObjectStoreService(factory);

            var urlProvider = new MockRetrieveUrlProvider();

            WebStoreService = new WebObjectStoreService(StoreService, urlProvider);
            WebQueryService = new QidoRsService(queryService, mediaIdFactory, storageService);
        }
Exemplo n.º 2
0
 public StowRSController(WebObjectStoreService storageService)
 {
     StorageService = storageService;
 }