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"); }
public void ShouldBeOrderByOperatorEmpty() { IQueryResolver resolver = new OrderByOperatorResolver(null); resolver.Resolve().Should().BeEmpty(); }