예제 #1
0
        public ConfigSource NewCompositeConfigProcessor(IList <ConfigSource> configProcessors)
        {
            CompositeConfigProcessorImpl processor = new CompositeConfigProcessorImpl();

            processor.ConfigProcessors = configProcessors;
            return(processor);
        }
예제 #2
0
        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);
        }