To be able to test my application I had to create a ‘dummy’ ClaimsPrincipal and ClaimsIdentity:
However when I tried to run my test, the test failed because the ClaimsIdentity returned ‘false’ for the IsAuthenticated check.
To create an authenticated ‘dummy’ identity I had to pass on an extra ‘authenticationType’ parameter to the constructor:
The exact value that you specify doesn't matter.