Closed jpepiot closed 5 years ago
Sure, please do. As it looks like a small change I may just merge it straightaway and update the package. Thank you for the contribution.
I made the PR for the fix. You'll find it at the link below. https://github.com/UnoSD/Moq.Dapper/pull/34
Thank you, all merged
I get an exception when I try to mock the ExecuteAsync method with StoredProcedure as command type.
Apparently, it seems that the 'DbParameterCollection' property and the 'CreateDbParameter' method are not mocked, so we get an exception when dapper try to access the Parameter property. If I mock them in the function DbConnectionMockExtensions.SetupNonQueryCommandAsync by adding the following code, I can run my test without error.
Should I add the code and submit a PR ?