Dependency Injection: where to store dependencies used by only one method?
- by simoneL
I developing a project integrated with Dependency Injection (just for reference, I'm using Unity).
The problem is that I have some Manager classes with several methods and in many cases I have dependencies used only in one method.
public class UserManager : IUserManager
{
private UserRepository UserRepository {get;set;}
private…