コード例 #1
0
        public void ShouldBeNullOrderByOperatorInstance()
        {
            ODataUriParser parser = GetParser("/Enterprises");

            ISqlBinder binder = new SqlFilterBinder(parser.ParseFilter());

            binder.Query.Should().BeNull();
        }
コード例 #2
0
        public void ShouldBeSingleValueFunctionOperatorResolverInstance()
        {
            ODataUriParser parser = GetParser("/Enterprises?$filter=contains(EnterpriseName,%27520%27)");

            ISqlBinder binder = new SqlFilterBinder(parser.ParseFilter());

            binder.Query.Should().BeOfType<SingleValueFunctionResolver>();
        }
コード例 #3
0
        public void ShouldBeBinaryOperatorResolverInstance()
        {
            ODataUriParser parser = GetParser("/Enterprises?$filter=CorporateName%20eq%20%27Diego%27");

            ISqlBinder binder = new SqlFilterBinder(parser.ParseFilter());

            binder.Query.Should().BeOfType<BinaryOperatorResolver>();
        }