How to mock ClaimsPrincipal in C#
If you’ve ever tried to mock out claims in C# with something like Moq or NSubstitute, you may have already gone through trying to mock HttpContextBase, then ClaimsPrincipal, then finally ClaimsIdentity with some Claims. As you can see just from that alone, it’s a bit of a hassle to chain all the mocking to finally […]
How to mock ClaimsPrincipal in C# Read More »