Exemple #1
0
        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");
        }
Exemple #2
0
        public void The_service_configuration_should_override_appconfig()
        {
            azureSettings.Stub(x => x.GetSetting("TestConfigSection.StringSetting")).Return("test");

            Assert.AreEqual(configSource.GetConfiguration <TestConfigSection>().StringSetting, "test");
        }