internal void Context(string sectionName) { registrations = new List <TypeRegistration>(); this.configurator = new Mock <IContainerReconfiguringEventSource>(); this.configSource = new DictionaryConfigurationSource(); section = new MockRegistrationProvidingSection(); configSource.Add(sectionName, section); new ConfigSectionLocator(sectionName, configurator.Object); }
internal void Context(string sectionName) { registrations = new List<TypeRegistration>(); this.configurator = new Mock<IContainerReconfiguringEventSource>(); this.configSource = new DictionaryConfigurationSource(); section = new MockRegistrationProvidingSection(); configSource.Add(sectionName, section); new ConfigSectionLocator(sectionName, configurator.Object); }