コード例 #1
0
        public void ShouldBeOrderByOperatorResolverInstance()
        {
            ODataUriParser parser = GetParser("/Enterprises?$orderby=EnterpriseName");

            ISqlBinder binder = new SqlOrderByBinder(parser.ParseOrderBy());

            binder.Query.Should().BeOfType<OrderByOperatorResolver>();
        }
コード例 #2
0
        public void ShouldBeNullOrderByOperatorInstance()
        {
            ODataUriParser parser = GetParser("/Enterprises");

            ISqlBinder binder = new SqlOrderByBinder(parser.ParseOrderBy());

            binder.Query.Should().BeNull();
        }