public ConfigSource NewCompositeConfigProcessor(IList <ConfigSource> configProcessors) { CompositeConfigProcessorImpl processor = new CompositeConfigProcessorImpl(); processor.ConfigProcessors = configProcessors; return(processor); }
public void TestNewCompositeConfigProcessor() { IList <ConfigSource> configProcessors = new List <ConfigSource>(); ConfigSource compositeConfigProcessor = this.ConfigurationFactory.NewCompositeConfigProcessor(configProcessors); Assert.IsNotNull(compositeConfigProcessor); Assert.IsInstanceOf(typeof(CompositeConfigProcessorImpl), compositeConfigProcessor); CompositeConfigProcessorImpl compositeConfigProcessorImpl = compositeConfigProcessor as CompositeConfigProcessorImpl; Assert.AreEqual(configProcessors, compositeConfigProcessorImpl.ConfigProcessors); }