public SortQueryProcessor(
     IInputParser inputParser,
     LambdaExpressionFactory expressionFactory)
 {
     _inputParser       = inputParser;
     _expressionFactory = expressionFactory;
 }
Beispiel #2
0
        public void ShouldCreateFactoryFast()
        {
            var lambda = (Func <int, int>)LambdaExpressionFactory
                         .CreateFactoryFast(delegateType)
                         .Invoke(plusOne.Body, plusOne.Parameters.ToArray())
                         .Compile();

            Assert.That(lambda.Invoke(1), Is.EqualTo(2));
        }
Beispiel #3
0
 public void ShouldUseFastFactory() => Assert.That(LambdaExpressionFactory.CanUseFastFactory());