private void ShouldSetOptionalToFalseByDefault() { var source = new ConsulConfigurationSource("Key"); source.Optional.Should().BeFalse(); }
private void ShouldSetReloadOnChangeToFalseByDefault() { var source = new ConsulConfigurationSource("Key"); source.ReloadOnChange.Should().BeFalse(); }
private void ShouldSetKey() { var source = new ConsulConfigurationSource("Key"); source.Key.Should().Be("Key"); }
private void ShouldSetKeyToRemoveToKeyByDefault() { var source = new ConsulConfigurationSource("Key"); source.KeyToRemove.Should().Be("Key"); }
private void ShouldHaveJsonConfigurationParserByDefault() { var source = new ConsulConfigurationSource("Key"); source.Parser.Should().BeOfType <JsonConfigurationParser>(); }
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>()); }