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
But when I do, I get NullReferenceException because somehow ReturnsAsync is returning null. I also can't do .Verifiable().ReturnsAsync(...) because Verifiable is void. (This seems like it shouldn't be affected by Moq.Dapper since this method is from the core library, but I can only reproduce this issue when using Moq.Dapper)
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?
The text was updated successfully, but these errors were encountered: