Skip to content

Conversation

96malhar
Copy link
Contributor

@96malhar 96malhar commented Jul 29, 2024

Description

This PR adds the ability to mock BatchGet and MultiTableBatchGet operations in DynamoDB.

  • The IDynamoDBContext.CreateBatchGet<T>(...) method now returns a generic IBatchGet<T> interface
  • The IDynamoDBContext.CreateMultiTableBatchGet(...) method now returns a IMultiTableBatchGet interface.

The IBatchGet<T> interface also implements the non generic IBatchGet which defines the Execute and ExecuteAsync method to carry out the BatchGet 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license
@96malhar 96malhar requested review from ashovlin and normj August 2, 2024 21:56
@96malhar 96malhar force-pushed the kmalhar/mock-batchget branch from 3ee0a50 to 17a433e Compare August 5, 2024 22:01
@96malhar 96malhar force-pushed the feature/v4-ddb-mock branch from de93a95 to ad8c25d Compare August 5, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants