public void CreateConfig_ReturnsExpectedResult() { // Arrange // Act var result = CredStashConfig.Default(); // Assert Assert.Equal("credential-store", result.TableName); Assert.Equal("name", result.KeyName); }
public ICredStashReader Build() { if (_dynamoDbClient == null) { _dynamoDbClient = new AmazonDynamoDBClient(); } if (_keyManagementServiceClient == null) { _keyManagementServiceClient = new AmazonKeyManagementServiceClient(); } if (_credStashConfig == null) { _credStashConfig = CredStashConfig.Default(); } var credentialStorage = new CredentialStorage(_credStashConfig, _dynamoDbClient); var masterKeyStorage = new MasterKeyStorage(_keyManagementServiceClient); return(new CredStashReader(credentialStorage, masterKeyStorage, new HmacSha256Verifier(), new AesCrypto())); }