Dotnet
Current User

Exercise - IAccountRepository Dependency Injection

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

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