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