예제 #1
0
        public void Set_ThrowsArgumentNullException_IfNullOrEmptyNamePassed(string name)
        {
            Action action = () => appSettings.Set(name, 123);

            action.ShouldThrow <ArgumentNullException>();
        }
예제 #2
0
        public void Set_Respects_KeySpecificity(KeySpecificity keySpecificity, string expectedKey)
        {
            var keySpecificAppSetting = new ConsulAppSettings(keySpecificity);

            VerifySetEndpoint(() => keySpecificAppSetting.Set(SlashKey, 123), "true", expectedKey);
        }
예제 #3
0
 public void Set_ThrowsArgumentNullException_IfNullOrEmptyNamePassed(string name)
 {
     Assert.Throws <ArgumentNullException>(() => appSettings.Set(name, 123));
 }