/// <summary> /// Returns the validation messages resulting from validating this object /// </summary> /// <param name="entity">The object to validate</param> /// <returns></returns> public abstract IEnumerable <ValidationMessage> GetValidationMessages(object entity, RuleContext context);