I would like to use the FluentValidation like this:
public class CustomValidator : AbstractValidator<Customer> {
public CustomValidator()
{
RuleFor(obj => obj.Prop).NotNull().Level(ErrorLevels.Error);
RuleFor(obj => obj.Prop).NotEqual("foo").Level(ErrorLevels.Warning);
}
}
Are there any tools for this? The documentation does not contain information about this.