public UniqueNameRepositoryMigrationV1(AwsDynamoDbConfig config, IAwsClientFactory clientFactory) { if (config == null) { throw new ArgumentNullException("config"); } _tablePrefix = config.TablePrefix; _client = clientFactory.CreateDynamoDBClient(); }
public void TestRegion() { // Arrange AwsDynamoDbConfig dynamoDbConfig = new AwsDynamoDbConfig(); // Act string actual = dynamoDbConfig.Region; // Assert Assert.AreEqual("eu-west-1", actual); }
public void TestProfileName() { // Arrange AwsDynamoDbConfig dynamoDbConfig = new AwsDynamoDbConfig(); // Act string actual = dynamoDbConfig.ProfileName; // Assert Assert.AreEqual("TinamousDev", actual); }
public void TestTablePrefix() { // Arrange AwsDynamoDbConfig dynamoDbConfig = new AwsDynamoDbConfig(); // Act string actual = dynamoDbConfig.TablePrefix; // Assert Assert.AreEqual("Test-", actual); }
public MediaRepository(AwsDynamoDbConfig config, IAwsClientFactory clientFactory) { if (config == null) { throw new ArgumentNullException("config"); } if (clientFactory == null) { throw new ArgumentNullException("clientFactory"); } _tablePrefix = config.TablePrefix; _client = clientFactory.CreateDynamoDBClient(); }