title: Dependency injection in Xunit project
body: <p>I am working on an ASP.Net Core MVC Web application.</p>
  <p>My Solution contains 2 projects:</p>
  <ul>
  <li>One for the application and</li>
  <li>A second project, dedicated to unit tests (XUnit).</li>
  </ul>
  <p>I have added a reference to the application project in the Tests project.</p>
  <p>What I want to do now is to write a class in the XUnit Tests project which will communicate with the database through entity framework.</p>
  <p>What I was doing in my application project was to access to my <code>DbContext</code> class through constructor dependency injection.</p>
  <p>But I cannot do this in my tests project, because I have no <code>Startup.cs</code> file. In this file I can declare which services will be available.</p>
  <p>So what can I do to get a reference to an instance of my <code>DbContext</code> in the test class?</p>