andrebaltieri / FluentValidator

Fluent Validator is a fluent way to use Notification Pattern with your entities
122 stars 40 forks source link

Added IsBetween function #16

Closed fgemig closed 6 years ago

fgemig commented 6 years ago

This feature allows you to validate whether a number is between a range

var right = new ValidationContract()
    .Requires()
    .IsBetween(5, 1, 10, "int", "The value 5 is between 1 and 10");