Ejemplo n.º 1
0
        public void NewSecret()
        {
            var dict = new Dictionary <string, string>
            {
                { "key1", "value1" },
                { "key2", "value2" }
            };

            var configuration = new ConfigurationBuilder()
                                .AddInMemoryCollection(dict)
                                .Build();

            SecretManager secretManager = new SecretManager(configuration);

            secretManager.SetSecret("key3", "value3");

            Assert.Equal("value3", secretManager.GetSecret("key3"));
        }