Ejemplo n.º 1
0
        public DynamoDbTestHelper()
        {
            var clientConfig = new AmazonDynamoDBConfig
            {
                ServiceURL = "http://localhost:8000"
            };

            Client = new AmazonDynamoDBClient(clientConfig);
            var tableName = $"test_{Guid.NewGuid()}";

            DynamoDbContext = new DynamoDBContext(Client);
            DynamoDbCommandStoreTestConfiguration = new DynamoDbCommandStoreConfiguration($"command_{tableName}", true, "CommandId", "ContextKey");
            DynamoDbMessageStoreTestConfiguration = new DynamoDbMessageStoreConfiguration($"message_{tableName}", true, "MessageId");
        }
Ejemplo n.º 2
0
        public DynamoDbTestHelper()
        {
            var credentials = new BasicAWSCredentials("FakeAccessKey", "FakeSecretKey");

            var clientConfig = new AmazonDynamoDBConfig
            {
                ServiceURL = "http://localhost:8000"
            };

            Client = new AmazonDynamoDBClient(credentials, clientConfig);

            var tableName = $"test_{Guid.NewGuid()}";

            DynamoDbContext = new DynamoDBContext(Client);
            DynamoDbInboxTestConfiguration        = new DynamoDbInboxConfiguration($"command_{tableName}", true, "CommandId", "ContextKey");
            DynamoDbMessageStoreTestConfiguration = new DynamoDbMessageStoreConfiguration($"message_{tableName}", true, "MessageId");
        }