title: How do you create a test server in .Net 6?
body: <p>I need to write some unit tests for an ASP.Net 6 API and need to create a test server to verify authorization. However since the startup class has been removed, I don't know what I should use as the entry point for the test server creation.
  This was the way of creating one in previous versions.</p>
  <pre><code> var server = new TestServer(new WebHostBuilder().UseStartup&lt;Startup&gt;());
  </code></pre>