Appccelerate.Bootstrapper.Configuration.ExtensionConfigurationSectionBehaviorTest.Behave_ShouldConsumeSectionFromProvider C# (CSharp) Method

Behave_ShouldConsumeSectionFromProvider() private method

private Behave_ShouldConsumeSectionFromProvider ( ) : void
return void
        public void Behave_ShouldConsumeSectionFromProvider()
        {
            var expectedConfiguration = new KeyValuePair<string, string>("AnyKey", "AnyValue");
            var configuration = new Dictionary<string, string>();

            var configurationSection = ExtensionConfigurationSectionHelper.CreateSection(expectedConfiguration);

            this.sectionProvider.Setup(p => p.GetSection(It.IsAny<string>())).Returns(configurationSection);
            this.consumer.Setup(c => c.Configuration).Returns(configuration);

            this.testee.Behave(this.extensions);

            configuration.Should().Contain(expectedConfiguration);
        }