How to use DI with UserManager and UserStore
Given a typical setup of a MVC controller constructor passing UserManager (which takes UserStore ) to it's parent class, how would this be converted to be injected via IoC? Starting with this: public AccountController() : this(new UserManager<ApplicationUser>( new UserStore<ApplicationUser>(new ApplicationDbContext()))) { } I would think something like this: public AccountController(IUserStore store) : this(new UserManager<ApplicationUser>(store))) { } Though this does, of course, lose the IdentityDbContext . How should the IoC be setup and how should the constructor be defined to allow