Base solution for your next web application
Open Closed

Unit Test User Context #6137


User avatar
0
davidharrison created

Hi Guys,

I've recently begun building out unit tests in our .net zero project and I don't currently fully understand how the unit tests manage user context.

I've noticed that the AbpSession.UserId value when the tests are running is set to user 2. How does the testing framework chose this user and set as user context?

Is it possible to change which user context all the tests or certain tests run under?

Thanks,

David


1 Answer(s)