Playing around with .Net Core 5.0 and doing TDD I faced a small constraint: Mocking the logged-in User wasn't being easy as the ClaimsPrincipal Class is a get only attribute.

Check the article on Medium