My application uses the DI infrastructure and, where necessary, you should practice a "program for the interface."
I am using constructor injection since I want to see the dependencies explicitly. But now, form class designers take too many parameters (> = 4, for example).
Question . Because user interface design is usually not SRP-bound, the Winform class may have constructor dependencies n. Do you like to leave them as they are, instead pass the proxy object, use the service locator ...? Also do you add “aspects” (logger, etc.) to each constructor, given that aop-framework is not used?
source
share