title: How to test role based authorization route in asp.net web Api controller (not core)
body: <p>How to write integration test for a controller with role based authorization.</p>
  <pre><code>[Authorize(Roles = &quot;admin,leader&quot;)]
  [RoutePrefix(&quot;api&quot;)]
  public class AuthorizationTestsController1 : BaseApiController
  {
      [Authorize(Roles = &quot;manager&quot;)]
      [Route(&quot;route1&quot;)]
      public IHttpActionResult GetTestRoute1Result()
      {
          return Ok();
      }
  }
  </code></pre>
  <p>The web application is not core based, and my question is how to test this controller and its route with different users using integration test (NUnit-based).</p>