Exemplo n.º 1
0
        protected override FilterQueryPart Parse(string parameterValue)
        {
            var tokens = _regularExpressionTableLexer.Tokenize(parameterValue);

            var result = ShuntingYardAlgorithm(tokens);

            var builderStrategy = new FilterExpressionParserStrategy();

            var filterExpression = builderStrategy.BuildExpression(result);

            return(ODataQueryPart.Filter(filterExpression));
        }
 public void Tokenize_NullString_ThrowsException()
 {
     Assert.That(() => _tableLexer.Tokenize(null), Throws.InstanceOf <ArgumentNullException>());
 }