We use DI for our validation.
We have a RegistrationEntity that contains multiple DebtorEntities. We have a Debtor Validator and a RegistrationValidator.
The issue that has come up is that I need some information from the RegistrationEntity in my DebtorValidator. The DebtorEntity does not have a reference to RegistrationEntity.
Is there a way to pass information to a validator?