Unit tests are extremely important in making sure your application behaves normally. There is often the need to unit test a method which requires an authenticated context and lucky there is an easy way to do this. A typical startup file may have the authorization and authentication middleware setup. I know it might seem confusingRead more