public IEnumerable <LearnerValidationError> Validate(Message message) { _fileData.Populate(message); var validationErrorHandler = _ruleManager.ExecuteRules(message.Learner); return((validationErrorHandler as LearnerValidationErrorHandler).ErrorBag); }