title: IntegrationTest controllers with .net core 2.0 on web api
body: <p>I've just created an empty web api project with .net core 2.0.
  I have a default controller and I want now create an integration test.</p>
  
  <pre><code>[Route("api/[controller]")]
  public class ValuesController : Controller
  {
      // GET api/values
      [HttpGet]
      public IEnumerable&lt;string&gt; Get()
      {
          return new string[] { "value1", "value2" };
      }
  }
  </code></pre>
  
  <p>The goal is self host in the integration then enter url api/values and check the return.</p>
  
  <p>NB: I only use wep api 2 and owin, and it was quite easy to do this. But the following link: <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/owin" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/owin</a> says that .net core application should not use owin, so what should we use and how to it?</p>