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");
 }
Esempio 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");
 }
Esempio n. 3
0
 public TestRepository(IMethodLookup methodLookup)
 {
     _methodLookup = methodLookup;
 }
Esempio n. 4
0
 public SqlRepository(IConfiguration config, ISqlTranslator <TData> sqlTranslator, IMethodLookup methodLookup)
 {
     _connectionString = config.GetConnectionString("DefaultConnection");
     _sqlTranslator    = sqlTranslator;
     _sqlMethodLookup  = methodLookup;
 }