Add the ability to mock BatchWrite and MultiTableBatchWrite operations#3429
Merged
96malhar merged 1 commit intofeature/v4-ddb-mockfrom Aug 9, 2024
Merged
Add the ability to mock BatchWrite and MultiTableBatchWrite operations#342996malhar merged 1 commit intofeature/v4-ddb-mockfrom
96malhar merged 1 commit intofeature/v4-ddb-mockfrom
Conversation
96malhar
commented
Aug 7, 2024
| <PackageReference Include="System.Buffers" Version="4.5.1" /> | ||
| <PackageReference Include="System.Memory" Version="4.5.5" /> | ||
| <PackageReference Include="System.Text.Json" Version="8.0.3" /> | ||
| <PackageReference Include="System.Text.Json" Version="8.0.4" /> |
Contributor
Author
There was a problem hiding this comment.
I bumped up this package version because 8.0.3 was being flagged for a vulnerability. Since we have enabled "treat warning as errors", this led to compilation failures
normj
approved these changes
Aug 8, 2024
ashovlin
approved these changes
Aug 9, 2024
96malhar
added a commit
that referenced
this pull request
Aug 9, 2024
96malhar
added a commit
that referenced
this pull request
Aug 21, 2024
philasmar
pushed a commit
that referenced
this pull request
Aug 26, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the ability to mock
BatchWriteandMultiTableBatchWriteoperations in DynamoDB.IDynamoDBContext.CreateBatchWrite<T>(...)methods now returns a genericIBatchWrite<T>interfaceIDynamoDBContext.CreateMultiTableBatchWrite(...)method now returns aIMultiTableBatchWriteinterface.The
IBatchWrite<T>interface also implements the non genericIBatchWritewhich defines theExecuteandExecuteAsyncmethod to carry out the BatchWrite operations.I have added new unit tests to showcase how a user will mock these interfaces.
Motivation and Context
DOTNET-7676
Testing
Screenshots (if appropriate)
Types of changes
Checklist
License