public DicomSendService(IStorageRepository storageRepository, IDicomClient dicomClient, IPathFinder pathFinder, IRouteFinder routeFinder)
        {
            if (storageRepository == null)
            {
                throw new ArgumentNullException(nameof(storageRepository));
            }
            this._storageRepository = storageRepository;

            if (dicomClient == null)
            {
                throw new ArgumentNullException(nameof(dicomClient));
            }
            this._dicomClient = dicomClient;

            if (pathFinder == null)
            {
                throw new ArgumentNullException(nameof(pathFinder));
            }
            this._pathFinder = pathFinder;

            if (routeFinder == null)
            {
                throw new ArgumentNullException(nameof(routeFinder));
            }
            this._routeFinder = routeFinder;
        }
Esempio n. 2
0
 public IDicomClientFactory<TestInfo> GetDicomClientFactoryFake(IDicomClient<TestInfo> dicomClient)
 {
     var dicomClientFactory = Substitute.For<IDicomClientFactory<TestInfo>>();
     dicomClientFactory.CreateDicomClient().ReturnsForAnyArgs(dicomClient);
     return dicomClientFactory;
 }