Beispiel #1
0
        public void NonSecretsAreNotConcealed()
        {
            var provider = new TestConfigurationProvider("foo", "foo-value");

            var config = new ConfigurationRoot(new IConfigurationProvider[] {
                provider
            });

            var debugView = config.GetDebugView(ProcessValue);

            Assert.DoesNotContain(SecretCover, debugView);
        }
Beispiel #2
0
        public void SecretsAreConcealed()
        {
            var provider = new SecretConfigurationProvider("secret", "secret-value");

            var config = new ConfigurationRoot(new IConfigurationProvider[] {
                provider
            });

            var debugView = config.GetDebugView(ProcessValue);

            Assert.Contains(SecretCover, debugView);
        }