public void The_service_configuration_should_override_appconfig() { configSource = new AzureConfigurationSource(azureSettings, false); azureSettings.Stub(x => x.TryGetSetting( Arg.Is("TestConfigSection.StringSetting"), out Arg <string> .Out("test").Dummy)) .Return(true); Assert.AreEqual(configSource.GetConfiguration <TestConfigSection>().StringSetting, "test"); }
public void The_service_configuration_should_override_appconfig() { azureSettings.Stub(x => x.GetSetting("TestConfigSection.StringSetting")).Return("test"); Assert.AreEqual(configSource.GetConfiguration <TestConfigSection>().StringSetting, "test"); }