vendredi 21 avril 2017

Write a test to find all types used in the instantiation of a class

I have some code like:

new ValidationFailure<AddSystemUserDto>

This is in various places in my application service layer, I want to find all the different "Dto" types that have been used when newing up a ValidationFailure across the code, is this possible using reflection? Without having to run each application service method?





Aucun commentaire:

Enregistrer un commentaire