Ejemplo n.º 1
0
        public void TestBasicKeyStore()
        {
            //Arrange
            BasicKeyStore store = new BasicKeyStore();
            Dictionary <String, String> keys = new Dictionary <string, string>();

            keys.Add("TestkeyOne", "12345");
            keys.Add("TestkeyTwo", "12345678");
            store.addKey(Provider.Amazon, keys);
            //Act
            String amazonKeyOne = store.getKey(Provider.Amazon)["TestkeyOne"];
            String amazonKeyTwo = store.getKey(Provider.Amazon)["TestkeyTwo"];

            //Assert
            Assert.Equal(amazonKeyOne, "12345");
            Assert.Equal(amazonKeyTwo, "12345678");
        }