public DefaultNancyEnvironmentConfiguratorFixture() { this.environment = A.Fake <INancyEnvironment>(); this.factory = A.Fake <INancyEnvironmentFactory>(); this.defaultConfigurationProviders = A.Fake <IEnumerable <INancyDefaultConfigurationProvider> >(); A.CallTo(() => this.factory.CreateEnvironment()).Returns(this.environment); this.configurator = new DefaultNancyEnvironmentConfigurator(this.factory, this.defaultConfigurationProviders); }
public DefaultNancyEnvironmentConfiguratorFixture() { this.environment = A.Fake<INancyEnvironment>(); this.factory = A.Fake<INancyEnvironmentFactory>(); this.defaultConfigurationProviders = A.Fake<IEnumerable<INancyDefaultConfigurationProvider>>(); A.CallTo(() => this.factory.CreateEnvironment()).Returns(this.environment); this.configurator = new DefaultNancyEnvironmentConfigurator(this.factory, this.defaultConfigurationProviders); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultNancyEnvironmentConfigurator"/> class. /// </summary> /// <param name="factory">The <see cref="INancyEnvironmentFactory"/> instance to use when configuring an environment.</param> /// <param name="defaultConfigurationProviders"><see cref="INancyDefaultConfigurationProvider"/> instances that should be used during the configuration of the environment.</param> public DefaultNancyEnvironmentConfigurator(INancyEnvironmentFactory factory, IEnumerable <INancyDefaultConfigurationProvider> defaultConfigurationProviders) { this.factory = factory; this.defaultConfigurationProviders = defaultConfigurationProviders; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultNancyEnvironmentConfigurator"/> class. /// </summary> /// <param name="factory">The <see cref="INancyEnvironmentFactory"/> instance to use when configuring an environment.</param> /// <param name="defaultConfigurationProviders"><see cref="INancyDefaultConfigurationProvider"/> instances that should be used during the configuration of the environment.</param> public DefaultNancyEnvironmentConfigurator(INancyEnvironmentFactory factory, IEnumerable<INancyDefaultConfigurationProvider> defaultConfigurationProviders) { this.factory = factory; this.defaultConfigurationProviders = defaultConfigurationProviders; }