Example #1
0
        public void Init()
        {
            DicomServerTestServiceProvider.Reset();

            Platform.SetExtensionFactory(new UnitTestExtensionFactory()
            {
                { typeof(ServiceProviderExtensionPoint), typeof(DicomServerTestServiceProvider) },
                { typeof(ServiceNodeServiceProviderExtensionPoint), typeof(TestServiceNodeServiceProvider) },
                { typeof(StudyLoaderExtensionPoint), typeof(UnitTestStudyLoader) },
                { typeof(ExpressionFactoryExtensionPoint), typeof(JScriptExpressionFactory) },
                { typeof(ScreenInfoProviderExtensionPoint), typeof(MockScreenInfoProvider) },
                { typeof(ServiceProviderExtensionPoint), typeof(StudyStoreTestServiceProvider) },
                { typeof(ServiceProviderExtensionPoint), typeof(TestSystemConfigurationServiceProvider) }
            });
        }
Example #2
0
        public void Initialize()
        {
            DicomServerTestServiceProvider.Reset();
            StudyStoreTestServiceProvider.Reset();
            ServerDirectoryTestServiceProvider.Reset();

            var factory = new UnitTestExtensionFactory
            {
                { typeof(ServiceProviderExtensionPoint), typeof(DicomServerTestServiceProvider) },
                { typeof(ServiceProviderExtensionPoint), typeof(StudyStoreTestServiceProvider) },
                { typeof(ServiceProviderExtensionPoint), typeof(ServerDirectoryTestServiceProvider) },
                { typeof(ServiceProviderExtensionPoint), typeof(TestSystemConfigurationServiceProvider) }
            };

            Platform.SetExtensionFactory(factory);
        }