FakeExecutor
namespace YOUR.NAMESPACE.HERE
{
using System.Collections.Generic;
using System.Data;
using DapperWrapper;
public class FakeExecutor : IDbExecutor
{
public dynamic Parameters { get; private set; }
public string CommandString { get; private set; }
public IDbTransaction Transaction { get; private set; }
public int? CommandTimeout { get; private set; }
public CommandType? CommandType { get; private set; }
public int Execute(string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = new int?(), CommandType? commandType = new CommandType?())
{
Parameters = param;
return 0;
}
public IEnumerable<dynamic> Query(string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = new int?(), CommandType? commandType = new CommandType?())
{
yield break;
}
public IEnumerable<T> Query<T>(string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = new int?(), CommandType? commandType = new CommandType?())
{
yield break;
}
public void Dispose()
{ }
}
}