You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However it is not possible to create an instance of Table because it has only internal constructors. For the same reason it is also not possible to mock the class.
The text was updated successfully, but these errors were encountered:
Looks like this is related to #604, but concerns a slightly different set of files. This isn't on our roadmap right now, but I will add it to our feature requests backlog.
If you're interested in working on this addition, we're always happy to accept a pull request.
When working with
Amazon.DynamoDBv2.DataModel
, specificallyIDynamoDBContext
, it is useful to be able to mock the interface in a unit test.However it is not possible to mock many of the types being returned by methods on the
IDynamoDBContext
interface.Examples are
Table
andBatchGet
.As an example with NSubstitute
However it is not possible to create an instance of
Table
because it has only internal constructors. For the same reason it is also not possible to mock the class.The text was updated successfully, but these errors were encountered: