Beispiel #1
0
        public ConfigurationSectionBehaviorTest()
        {
            this.consumer            = new Mock <IConsumeConfigurationSection>();
            this.sectionNameProvider = new Mock <IHaveConfigurationSectionName>();
            this.sectionProvider     = new Mock <ILoadConfigurationSection>();

            this.factory = new Mock <IConfigurationSectionBehaviorFactory>();
            this.AutoStubFactory();

            this.extensions = new List <IExtension> {
                Mock.Of <IExtension>(), Mock.Of <IExtension>(),
            };

            this.testee = new ConfigurationSectionBehavior(this.factory.Object);
        }
Beispiel #2
0
        public ConfigurationSectionBehaviorTest()
        {
            this.consumer            = A.Fake <IConsumeConfigurationSection>();
            this.sectionNameProvider = A.Fake <IHaveConfigurationSectionName>();
            this.sectionProvider     = A.Fake <ILoadConfigurationSection>();

            this.factory = A.Fake <IConfigurationSectionBehaviorFactory>();
            this.AutoStubFactory();

            this.extensions = new List <IExtension> {
                A.Fake <IExtension>(), A.Fake <IExtension>(),
            };

            this.testee = new ConfigurationSectionBehavior(this.factory);
        }