public void Build_ReturnsProvider()
        {
            var memSource = new MemoryConfigurationSource();
            IList <IConfigurationSource> sources = new List <IConfigurationSource>()
            {
                memSource
            };

            var source   = new PlaceholderResolverSource(sources, null);
            var provider = source.Build(new ConfigurationBuilder());

            Assert.IsType <PlaceholderResolverProvider>(provider);
        }
예제 #2
0
        public void Build__ReturnsProvider()
        {
            // Arrange
            var memSource = new MemoryConfigurationSource();
            IList <IConfigurationSource> sources = new List <IConfigurationSource> {
                memSource
            };
            ILoggerFactory factory = new LoggerFactory();

            // Act and Assert
            var source   = new PlaceholderResolverSource(sources, factory);
            var provider = source.Build(new ConfigurationBuilder());

            Assert.IsType <PlaceholderResolverProvider>(provider);
        }