Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationSectionBehavior"/> class.
 /// </summary>
 /// <param name="factory">The factory.</param>
 public ConfigurationSectionBehavior(IConfigurationSectionBehaviorFactory factory)
 {
     this.factory = factory;
 }