Beispiel #1
0
        public void Initialize1()
        {
            DicomServer.Tests.DicomServerTestServiceProvider.Reset();
            StudyManagement.Tests.StudyStoreTestServiceProvider.Reset();

            Platform.SetExtensionFactory(new UnitTestExtensionFactory
            {
                {
                    typeof(ServiceProviderExtensionPoint),
                    typeof(TestSystemConfigurationServiceProvider)
                },
                {
                    typeof(ServiceProviderExtensionPoint),
                    typeof(ServerDirectoryTestServiceProvider)
                },
                {
                    typeof(ServiceProviderExtensionPoint),
                    typeof(DicomServer.Tests.DicomServerTestServiceProvider)
                },
                {
                    typeof(ServiceProviderExtensionPoint),
                    typeof(StudyManagement.Tests.StudyStoreTestServiceProvider)
                }
            });

            //Force IsSupported to be re-evaluated.
            StudyStore.InitializeIsSupported();
        }
        public void Initialize2()
        {
            StudyStoreTestServiceProvider.Reset();

            Platform.SetExtensionFactory(new NullExtensionFactory());
            //Force IsSupported to be re-evaluated.
            StudyStore.InitializeIsSupported();
        }
        public void Initialize1()
        {
            StudyStoreTestServiceProvider.Reset();

            Platform.SetExtensionFactory(new UnitTestExtensionFactory
                                             {
                                                 { typeof(ServiceProviderExtensionPoint), typeof(StudyStoreTestServiceProvider) }
                                             });

            //Force IsSupported to be re-evaluated.
            StudyStore.InitializeIsSupported();
        }