public Expression <Func <T, bool> > Build <T>(Filter filter, ITokenModule tokenModule, IMethodModule methodModule) { _tokens = tokenModule == null ? new Dictionary <string, IToken>() : tokenModule.GetTokens(); _methods = methodModule == null ? new Dictionary <string, IMethod>() : methodModule.GetMethods(); var pe = Expression.Parameter(typeof(T), "f"); var be = BoolExpression(filter, null, pe); var lambda = Expression.Lambda <Func <T, bool> >(be, pe); return(lambda); }
public void BeforeEach() { _sut = new ArtTokenModule(); }
public JwtProviderResource(TokenAlg alg, ITokenModule module) { this.Alg = alg; this.Strategy = module; }
public void BeforeEach() { _sut = new HmacTokenModule(); }