Exemple #1
0
        public void ShouldBeOrderByOperatorForTwoFields()
        {
            ODataUriParser parser = GetParser("/Enterprises?$orderby=EnterpriseName,PartnerName%20desc");

            IQueryResolver resolver = new OrderByOperatorResolver(parser.ParseOrderBy());

            resolver.Resolve().Should().Be("ORDER BY EnterpriseName asc, PartnerName desc");
        }
Exemple #2
0
        public void ShouldBeOrderByOperatorEmpty()
        {
            IQueryResolver resolver = new OrderByOperatorResolver(null);

            resolver.Resolve().Should().BeEmpty();
        }