I\'ve been trying to work out how to create a FluentValidation rule that checks if the instance of an object it\'s validating is not null, prior to validating it\'s properti
I can't really test that right now, but you can either try to override Validate, or include the rules in the When block:
Validate
When
public CustomerValidator() { When(x => x != null, () => { RuleFor(x => x.Surname).NotEmpty(); //etc. }); }