63
1
using System;
2
using Dapper;
3
using Moq;
4
using Moq.Dapper;
5
using System.Data;
6
using System.Data.Common;
7
using System.Linq;
8
using System.Collections.Generic;
9
10
public class Program
11
{
12
public class ComplexType
13
{
14
public string StringProperty { get; set; }
15
public int IntegerProperty { get; set; }
16
}
17
18
private static void TestMoqDapperExecuteAsyncDbConnection()
19
{
20
var connection = new Mock<DbConnection>();
21
22
connection.SetupDapperAsync(c => c.ExecuteAsync("", null, null, null, null))
23
.ReturnsAsync(1);
24
Cached Result