A type that stores global settings in the isolated storage for the application. An implementation of the type.
Inheritance: SettingsProvider
コード例 #1
0
        /// <summary>
        /// Populates with the standard providers for Silverlight in-browser
        /// testing.
        /// </summary>
        private void PopulateProviders()
        {
            if (ServiceType.Direct == ServiceType)
            {
                // Settings provider
                IsolatedStorageSettingsProvider settings = new IsolatedStorageSettingsProvider(this);
                RegisterService(TestServiceFeature.RunSettings, settings);
            }

            if (ServiceType.WebService == ServiceType)
            {
                // Command line run settings provider
                SettingsProvider settings = new WebSettingsProvider(this);
                RegisterService(TestServiceFeature.RunSettings, settings);

                // Code coverage provider
                CodeCoverageProvider coverage = new WebCodeCoverageProvider(this);
                RegisterService(TestServiceFeature.CodeCoverageReporting, coverage);

                // Reporting provider
                TestReportingProvider reporting = new WebTestReportingProvider(this);
                RegisterService(TestServiceFeature.TestReporting, reporting);

                // Environment provider
                EnvironmentProvider environment = new WebEnvironmentProvider(this);
                RegisterService(TestServiceFeature.EnvironmentServices, environment);
            }
        }
コード例 #2
0
        /// <summary>
        /// Populates with the standard providers for Silverlight in-browser 
        /// testing.
        /// </summary>
        private void PopulateProviders()
        {
            if (ServiceType.Direct == ServiceType)
            {
                // Settings provider
                IsolatedStorageSettingsProvider settings = new IsolatedStorageSettingsProvider(this);
                RegisterService(TestServiceFeature.RunSettings, settings);
            }

            if (ServiceType.WebService == ServiceType)
            {
                // Command line run settings provider
                SettingsProvider settings = new WebSettingsProvider(this);
                RegisterService(TestServiceFeature.RunSettings, settings);

                // Code coverage provider
                CodeCoverageProvider coverage = new WebCodeCoverageProvider(this);
                RegisterService(TestServiceFeature.CodeCoverageReporting, coverage);

                // Reporting provider
                TestReportingProvider reporting = new WebTestReportingProvider(this);
                RegisterService(TestServiceFeature.TestReporting, reporting);

                // Environment provider
                EnvironmentProvider environment = new WebEnvironmentProvider(this);
                RegisterService(TestServiceFeature.EnvironmentServices, environment);
            }
        }