Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
inputfalken committed Jul 12, 2024
1 parent 96a8519 commit 4c0f9a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.DocumentModel;
using Amazon.DynamoDBv2.Model;
using AutoFixture;
using Dynatello.Builders;
Expand Down Expand Up @@ -26,7 +27,7 @@ public async Task Send_SuccessMock_ShouldReturnItem()

var actual = await Cat.GetById
.OnTable("TABLE")
.ToDeleteRequestHandler(x => x.ToDeleteRequestBuilder(), x => x.AmazonDynamoDB = amazonDynamoDB)
.ToDeleteRequestHandler(x => x.ToDeleteRequestBuilder() with { ReturnValues = ReturnValue.ALL_OLD }, x => x.AmazonDynamoDB = amazonDynamoDB)
.Send(expected.Id, default);

Assert.Equal(expected, actual);
Expand Down

0 comments on commit 4c0f9a4

Please sign in to comment.