Using ASP.NET Core Identity users in integration tests

added by DotNetKicks
4/9/2019 4:09:20 AM

2 Kicks, 206 Views

I have application that uses ASP.NET Core Identity with classic logins and there's need to cover this application with integration tests. Some tests are for anonymous users and others for authenticated users. This blog post shows how to set selectively set authenticated ASP.NET Core Identity user for ASP.NET Core integration tests.