I have student object with a child collection of Test. Have a validation on Tests collection defined in the StudentValidator to make sure at least one item is added to collection when saving a student.
In UI, loop through the collection in foreach and have individual textfields binded to Test object.
RuleFor(s => s.Tests).Must(s => s.Count() > 0).WithMessage("At least one Test info must be provided.");
Don't want to display in the ValidationMessage as remaining validations are displayed For() on the property on which validation message is defined.
Where/how do you display this validation message in the UI?