Example #1
0
            private void ShouldSetOptionalToFalseByDefault()
            {
                var source = new ConsulConfigurationSource("Key");

                source.Optional.Should().BeFalse();
            }
Example #2
0
            private void ShouldSetReloadOnChangeToFalseByDefault()
            {
                var source = new ConsulConfigurationSource("Key");

                source.ReloadOnChange.Should().BeFalse();
            }
Example #3
0
            private void ShouldSetKey()
            {
                var source = new ConsulConfigurationSource("Key");

                source.Key.Should().Be("Key");
            }
Example #4
0
            private void ShouldSetKeyToRemoveToKeyByDefault()
            {
                var source = new ConsulConfigurationSource("Key");

                source.KeyToRemove.Should().Be("Key");
            }
Example #5
0
            private void ShouldHaveJsonConfigurationParserByDefault()
            {
                var source = new ConsulConfigurationSource("Key");

                source.Parser.Should().BeOfType <JsonConfigurationParser>();
            }
Example #6
0
            private void ShouldSetKey()
            {
                var source = new ConsulConfigurationSource("Key", default(CancellationToken));

                source.Key.Should().Be("Key");
            }
        public void ShouldSetReloadOnChangeToFalseByDefault()
        {
            var source = new ConsulConfigurationSource("Key", CancellationToken.None);

            Assert.That(source.ReloadOnChange, Is.False);
        }
        public void ShouldSetOptionalToFalseByDefault()
        {
            var source = new ConsulConfigurationSource("Key", CancellationToken.None);

            Assert.That(source.Optional, Is.False);
        }
        public void ShouldHaveJsonConfgurationParserByDefault()
        {
            var source = new ConsulConfigurationSource("Key", CancellationToken.None);

            Assert.That(source.Parser, Is.TypeOf <JsonConfigurationParser>());
        }