Moq.Dapper icon indicating copy to clipboard operation
Moq.Dapper copied to clipboard

QueryAsync<Dynamic>

Open WilliamJOrrIV opened this issue 3 years ago • 4 comments

When setting up QueryAsync with type nothing is ever returned. Does the current library not support this?

This is the line of code returning nothing for me.

mockDb.MockDbConnection.SetupDapperAsync(c => c.QueryAsync(It.IsAny(), null, null, null, null)).ReturnsAsync(expectedQuestions);

WilliamJOrrIV avatar Jun 27 '22 19:06 WilliamJOrrIV

I am having same issue. Setups for Query, Query and async versions never return anything and I think I have tried everything I could think of to solve it.

Curious if this is a bug? Hopefully not a permanent limitation, as some more generic code will not be easy to test then.

JugoRadonic avatar Aug 04 '22 18:08 JugoRadonic

I'm also having the same problem. Thanks for opening an issue and leaving your comments. I thought I was doing something wrong!

codeforhealth avatar Sep 30 '22 22:09 codeforhealth

Is there any update on this issue please? @UnoSD

yogeshk97 avatar Jan 07 '24 19:01 yogeshk97

@yogeshk97 (same as the other issue) at the moment I do not have the capacity for working on the repo, but I welcome PRs and I am happy to review.

UnoSD avatar Jan 08 '24 10:01 UnoSD