I use Unity for dependency injection, and in a few places I use property injection (with the [Dependency]
attribute) rather than constructor injection.
I'd like to use AutoFixture as a mocking container for my unit tests, but by default it sets all public properties on the system under test. I know I can explicitly exclude specific properties, but is there a way to include only properties that have the [Dependency]
attribute?
Aucun commentaire:
Enregistrer un commentaire