We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Either I've configured something incorrectly, or QueryAsync doesn't work.
QueryAsync
public class SomethingToMock { private string Key; public SomethingToMock(string key) { Key = key; } } [Fact] public async Task DoesMoqDapperWork() { var connection = new Mock<IDbConnection>(); var expected = new[] { new SomethingToMock ("asdf") }; connection.SetupDapperAsync(c => c.QueryAsync<SomethingToMock>(It.IsAny<string>(), null, null, null, null)) .ReturnsAsync(expected); var data = await connection.Object.QueryAsync<SomethingToMock>("foo"); Assert.Equal(expected.Length, data.Count()); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Either I've configured something incorrectly, or
QueryAsync
doesn't work.The text was updated successfully, but these errors were encountered: