Dependency Inversion Principle and where to put the interfaces
问题 I am building a simple MVC application in asp.net. I want to follow the dependency inversion principle and I don't know if I am doing it right. I am currently working on the Authentication system. I have an AccountController which uses the Authenticator service inside. The Authenticator service is injected into the controller by constructor injection. public class AccountController : Controller { private IAuthenticator _authenticator; public AccountController(IAuthenticator authenticator) {