Skip to content

Commit 02dd0dd

Browse files
committed
fix: Update unit test for TransactWrite change
1 parent 37eaf48 commit 02dd0dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/test/Services/DynamoDBv2/UnitTests/Custom/DataModelOperationSpecificConfigTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void TransactWriteConfig()
210210
public void TransactWriteConfig_OverridesTableName()
211211
{
212212
var mockClient = new Mock<IAmazonDynamoDB>();
213-
mockClient.Setup(x => x.TransactWriteItems(It.Is<TransactWriteItemsRequest>(x => x.TransactItems[0].Update.TableName == "OperationPrefix-TableName")))
213+
mockClient.Setup(x => x.TransactWriteItems(It.Is<TransactWriteItemsRequest>(x => x.TransactItems[0].Put.TableName == "OperationPrefix-TableName")))
214214
.Returns(new TransactWriteItemsResponse())
215215
.Verifiable();
216216

@@ -235,7 +235,7 @@ public void TransactWriteConfig_OverridesTableName()
235235
public void TransactWriteConfig_RemoveTablePrefix()
236236
{
237237
var mockClient = new Mock<IAmazonDynamoDB>();
238-
mockClient.Setup(x => x.TransactWriteItems(It.Is<TransactWriteItemsRequest>(x => x.TransactItems[0].Update.TableName == "TableName")))
238+
mockClient.Setup(x => x.TransactWriteItems(It.Is<TransactWriteItemsRequest>(x => x.TransactItems[0].Put.TableName == "TableName")))
239239
.Returns(new TransactWriteItemsResponse())
240240
.Verifiable();
241241

0 commit comments

Comments
 (0)