Пример #1
0
        public void Create_NoParameters_ReturnsInstanceWithFormatSet()
        {
            var query = _queryFactory.Create();

            Assert.That(query.FormatPredicate, Is.Not.Null);
            Assert.That(query.FormatPredicate.DataFormat, Is.EqualTo(ODataFormat.Json));
        }
 public RestQueryModelVisitor(IODataQueryFactory queryFactory)
 {
     _query = queryFactory.Create();
     _filterExpressionTranslator = new ODataFilterExpressionVisitor(new FilterExpressionParserStrategy(), new TypeFormatter());
 }
Пример #3
0
 public RestQueryModelVisitor(IODataQueryFactory queryFactory)
 {
     _query = queryFactory.Create();
     _filterExpressionTranslator = new ODataFilterExpressionVisitor(new FilterExpressionParserStrategy(), new TypeFormatter());
 }