Use injector to create `ValidationResult`
Merge pull request #3427 from dhensby/patch-4

Use injector to create `ValidationResult`