public void ShouldBeOrderByOperatorResolverInstance() { ODataUriParser parser = GetParser("/Enterprises?$orderby=EnterpriseName"); ISqlBinder binder = new SqlOrderByBinder(parser.ParseOrderBy()); binder.Query.Should().BeOfType<OrderByOperatorResolver>(); }
public void ShouldBeNullOrderByOperatorInstance() { ODataUriParser parser = GetParser("/Enterprises"); ISqlBinder binder = new SqlOrderByBinder(parser.ParseOrderBy()); binder.Query.Should().BeNull(); }