Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to get registered services in integration test

$
0
0

I want to add an ApplicationUser user in my integration test, so i need to use ‘UserManager.CreateAsync()’.

I already know how to get the ApplicationDbContext, from the ‘integration testing’ docs page.

My question is how do i get the UserManager service in the integration test or any other di registered service?

 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>