public void ShouldBeNullOrderByOperatorInstance() { ODataUriParser parser = GetParser("/Enterprises"); ISqlBinder binder = new SqlFilterBinder(parser.ParseFilter()); binder.Query.Should().BeNull(); }
public void ShouldBeSingleValueFunctionOperatorResolverInstance() { ODataUriParser parser = GetParser("/Enterprises?$filter=contains(EnterpriseName,%27520%27)"); ISqlBinder binder = new SqlFilterBinder(parser.ParseFilter()); binder.Query.Should().BeOfType<SingleValueFunctionResolver>(); }
public void ShouldBeBinaryOperatorResolverInstance() { ODataUriParser parser = GetParser("/Enterprises?$filter=CorporateName%20eq%20%27Diego%27"); ISqlBinder binder = new SqlFilterBinder(parser.ParseFilter()); binder.Query.Should().BeOfType<BinaryOperatorResolver>(); }