Esempio n. 1
0
        public void HasValueWithUnknownKey()
        {
            var key = new ConfigurationKey <string>("unknown");

            var configuration = new ConsulConfiguration(
                new List <ConfigurationKeyBase>
            {
                key
            },
                _subConfiguration);

            Assert.IsFalse(configuration.HasValueFor(key));
        }
Esempio n. 2
0
        public void HasValueWithNullKey()
        {
            var key = new ConfigurationKey <string>("string");

            var configuration = new ConsulConfiguration(
                new List <ConfigurationKeyBase>
            {
                key
            },
                _subConfiguration);

            Assert.IsFalse(configuration.HasValueFor(null));
        }