Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class MocksDataStore
{
public AwsDynamoDbDataStore Create()
{
AmazonDynamoDBClient client = CreateAmazonDynamoDbClientWithLocalDbInstance();
AwsDynamoDbDataStore awsDynamoDbDataStore = new AwsDynamoDbDataStore(client);
return awsDynamoDbDataStore;
}
private static AmazonDynamoDBClient CreateAmazonDynamoDbClientWithLocalDbInstance()
{
var config = new AmazonDynamoDBConfig
{
ServiceURL = "http://localhost:8000"
};
return new AmazonDynamoDBClient(config);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.