gunnarpeipman.com
Create fake user for ASP.NET Core controller tests
Create fake users for ASP.NET Core controller tests and write user related extension methods for controllers to avoid duplicated code.