Default IConsumeConfiguration
Наследование: IConsumeConfiguration
        public void Configuration_ExtensionNotIConsumeConfiguration_ShouldUseEmtpyOne()
        {
            var extension = new Mock<IExtension>();

            var testee = new ConsumeConfiguration(extension.Object);
            testee.Configuration.Should().BeEmpty();
        }
        public void Configuration_ExtensionIHaveExtensionConfigurationSectionName_ShouldAcquireNameFromExtension()
        {
            var extension = new Mock<IExtension>();
            var consumer = extension.As<IConsumeConfiguration>();
            var expected = new KeyValuePair<string, string>("Value", "Key");

            consumer.Setup(n => n.Configuration).Returns(
                new Dictionary<string, string> { { expected.Key, expected.Value } });

            var testee = new ConsumeConfiguration(extension.Object);
            testee.Configuration.Should().Contain(expected);
        }