public override void SetUp()
 {
     base.SetUp();
     ExceptionHandlingConfigurationDesignManager manager = new ExceptionHandlingConfigurationDesignManager();
     CreateHierarchyAndAddToHierarchyService(new ApplicationConfigurationNode(ApplicationData.FromCurrentAppDomain()), CreateDefaultConfiguration());
     manager.Register(Host);
 }
        public override void SetUp()
        {
            base.SetUp();
            ExceptionHandlingConfigurationDesignManager manager = new ExceptionHandlingConfigurationDesignManager();

            CreateHierarchyAndAddToHierarchyService(new ApplicationConfigurationNode(ApplicationData.FromCurrentAppDomain()), CreateDefaultConfiguration());
            manager.Register(Host);
        }
 public void BuildContextTest()
 {
     HierarchyService.SelectedHierarchy.Open();
     ExceptionHandlingConfigurationDesignManager b = new ExceptionHandlingConfigurationDesignManager();
     ConfigurationDictionary dictionary = new ConfigurationDictionary();
     b.BuildContext(Host, dictionary);
     Assert.AreEqual(1, dictionary.Count);
     Assert.IsTrue(dictionary.Contains("exceptionHandlingConfiguration"));
 }
        public void BuildContextTest()
        {
            HierarchyService.SelectedHierarchy.Open();
            ExceptionHandlingConfigurationDesignManager b = new ExceptionHandlingConfigurationDesignManager();
            ConfigurationDictionary dictionary            = new ConfigurationDictionary();

            b.BuildContext(Host, dictionary);
            Assert.AreEqual(1, dictionary.Count);
            Assert.IsTrue(dictionary.Contains("exceptionHandlingConfiguration"));
        }
Ejemplo n.º 5
0
        public void BuildContextTest()
        {
            ExceptionHandlingConfigurationDesignManager designManager = new ExceptionHandlingConfigurationDesignManager();

            designManager.Register(ServiceProvider);
            designManager.Open(ServiceProvider);
            DictionaryConfigurationSource dictionarySource = new DictionaryConfigurationSource();

            designManager.BuildConfigurationSource(ServiceProvider, dictionarySource);
            Assert.IsTrue(dictionarySource.Contains("exceptionHandling"));
        }