Created
February 21, 2019 22:32
-
-
Save avegaraju/8c050b7fafdd808e515be8355cc92c10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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