Open blake-mealey opened 4 years ago
I am also having this problem.
Similar to https://github.com/UnoSD/Moq.Dapper/issues/30.
Hey, I am also having an issue when I use .verifiable(times."any count"). It always returns true no matter what the times count is set.
Hey, I am having some difficulty with one of my mocks. I want to do this:
But when I do, I get NullReferenceException because somehow ReturnsAsync is returning null. I also can't do
.Verifiable().ReturnsAsync(...)
becauseVerifiable
isvoid
. (This seems like it shouldn't be affected byMoq.Dapper
since this method is from the core library, but I can only reproduce this issue when usingMoq.Dapper
)I have been able to get it working like this:
But I'd rather not have to spread it out like that since usually the setup is chainable.
Any suggestions?