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();
 }
Example #3
0
 public JwtProviderResource(TokenAlg alg, ITokenModule module)
 {
     this.Alg      = alg;
     this.Strategy = module;
 }
Example #4
0
 public void BeforeEach()
 {
     _sut = new HmacTokenModule();
 }