public HandlerRunnerBuilder(Type type, string httpMethod, IMethodLookup methodLookup = null)
 {
     if (type == null) throw new ArgumentNullException("type");
     _type = type;
     _httpMethod = httpMethod;
     _methodLookup = methodLookup ?? new MethodLookup();
     _handlerParameter = Expression.Parameter(typeof(object), "obj");
     _handler = Expression.Variable(_type, "handler");
 }
Exemplo n.º 2
0
 public HandlerRunnerBuilder(Type type, string httpMethod, IMethodLookup methodLookup = null)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     _type             = type;
     _httpMethod       = httpMethod;
     _methodLookup     = methodLookup ?? new MethodLookup();
     _handlerParameter = Expression.Parameter(typeof(object), "obj");
     _handler          = Expression.Variable(_type, "handler");
 }
Exemplo n.º 3
0
 public TestRepository(IMethodLookup methodLookup)
 {
     _methodLookup = methodLookup;
 }
Exemplo n.º 4
0
 public SqlRepository(IConfiguration config, ISqlTranslator <TData> sqlTranslator, IMethodLookup methodLookup)
 {
     _connectionString = config.GetConnectionString("DefaultConnection");
     _sqlTranslator    = sqlTranslator;
     _sqlMethodLookup  = methodLookup;
 }