Outline

Exercise: IAccountRepository Dependency Injection

In the Conduit.Api Project

Modify the UserController (notice the singular "User")
  • Inject IAccountRepository
    • Add a private member
      • Name: AccountRepo
      • Type: IAccountRepository
    • Modify Constructor by adding new parameter
      • Name: accountRepo
      • Type: IAccountRepository
      • Assign the value of the parameter to the AccountRepo Member

Hint: Review the code in the UsersController

 

I finished! On to the next chapter