public void to_filter_rule() { var handler = new BinaryFilterHandler<LessThanPropertyOperation>(OperatorKeys.LESSTHAN, t => true); var request = new FilterRequest<Case>(new Criteria(){ value = "5" }, new ObjectConverter(), c => c.Integer); var rule = handler.ToFilterRule(request); rule.Accessor.ShouldEqual(request.Accessor); rule.Operator.ShouldEqual(OperatorKeys.LESSTHAN); rule.Value.ShouldEqual(5); }
public void to_filter_rule() { var handler = new BinaryFilterHandler <LessThanPropertyOperation>(OperatorKeys.LESSTHAN, t => true); var request = new FilterRequest <Case>(new Criteria() { value = "5" }, new ObjectConverter(), c => c.Integer); var rule = handler.ToFilterRule(request); rule.Accessor.ShouldEqual(request.Accessor); rule.Operator.ShouldEqual(OperatorKeys.LESSTHAN); rule.Value.ShouldEqual(5); }