protected override void Arrange() { LocalSource = new TestConfigurationSource(); var sectionForLocalSource = Arrange_GetLocalSourceSection(); if (sectionForLocalSource != null) LocalSource.Add(SectionName, sectionForLocalSource); ParentSource = new TestConfigurationSource(); var sectionForParentSource = Arrange_GetParentSourceSection(); if (sectionForParentSource != null) ParentSource.Add(SectionName, sectionForParentSource); HierarchicalSourceHandler = new HierarchicalConfigurationSourceHandler(LocalSource, ParentSource); LocalSource.SetHierarchyHandler(HierarchicalSourceHandler); }
protected override void Arrange() { base.Arrange(); sourceSection = new ConfigurationSourceSection() {ParentSource = "MissingParentSource"}; var localSource = new TestConfigurationSource(); localSource.Add(ConfigurationSourceSection.SectionName, sourceSection); hierarchicalConfigurationSourceHandler = new HierarchicalConfigurationSourceHandler(localSource); localSource.SetHierarchyHandler(hierarchicalConfigurationSourceHandler); }