Skip to content

Add the ability to mock TransactGet and MultiTableTransactGet operations#3433

Merged
96malhar merged 2 commits intofeature/v4-ddb-mockfrom
kmalhar/mock-transactget
Aug 13, 2024
Merged

Add the ability to mock TransactGet and MultiTableTransactGet operations#3433
96malhar merged 2 commits intofeature/v4-ddb-mockfrom
kmalhar/mock-transactget

Conversation

@96malhar
Copy link
Contributor

@96malhar 96malhar commented Aug 9, 2024

Description

This PR adds the ability to mock TransactGet and MultiTableTransactGet operations in DynamoDB

  • The IDynamoDBContext.CreateTransactGet<T>(...) methods now returns a generic ITransactGet<T> interface
  • The IDynamoDBContext.CreateMultiTableTransactGet(...) method now returns a IMultiTableTransactGet interface.

The ITransactGet<T> interface also implements the non generic ITransactGet which defines the Execute and ExecuteAsync method to carry out the TransactGet operations.

I have added new unit tests to showcase how a user will mock these interfaces.

Motivation and Context

DOTNET-7676

Testing

  • Added new unit tests.
  • All existing unit and integrations tests pass.

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 force-pushed the feature/v4-ddb-mock branch from e9abe86 to 08307bc Compare August 9, 2024 18:11
@96malhar 96malhar force-pushed the kmalhar/mock-transactget branch from 9e67016 to feae1c6 Compare August 9, 2024 18:11
@96malhar 96malhar requested a review from philasmar August 13, 2024 03:50
@96malhar 96malhar merged commit 16a262f into feature/v4-ddb-mock Aug 13, 2024
@dscpinheiro dscpinheiro deleted the kmalhar/mock-transactget branch August 19, 2024 00:16
@96malhar 96malhar added the v4 label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants