I really like these utils, hope it is still maintained.
There is an issue worth mentioning.
The solution doesn't work for async operation:
await connection.ExecuteAsync(query, item);
InvalidOperationException: Async operations require use of a DbConnection or an IDbConnection where CreateCommand() returns a DbCommand
Maybe there is the possibility to redesign DbCommandMock to inherit from abstract DbCommand instead of just implementing IDbCommand :?
I would like to have a solution when SaveInBatch is enabled by the configuration flag.
So using the same code instead of switching between synch and async execution would be a much more clean solution.
I really like these utils, hope it is still maintained.
There is an issue worth mentioning.
The solution doesn't work for async operation:
await connection.ExecuteAsync(query, item);Maybe there is the possibility to redesign
DbCommandMockto inherit fromabstract DbCommandinstead of just implementingIDbCommand:?I would like to have a solution when SaveInBatch is enabled by the configuration flag.
So using the same code instead of switching between synch and async execution would be a much more clean solution.