Example #1
0
        public void CallBackTest(string section)
        {
            string testString   = "test";
            int    testInt      = 75;
            var    configurator = new ConfigurationContainer(this.GetConfiguration(testInt, testString, section));

            ConfigurationItem result = null;

            configurator.Configure <ConfigurationItem>(section, item => { result = item; });

            result.Should().NotBeNull();
            result.TestInt.Should().Be(testInt);
            result.TestString.Should().Be(testString);
        }