title: Automated Unit test using Xunit for .net core 2.2 web API
body: <p>I have an Web API application build in .net core 2.2, I have to write automated test for this application using Xunit. Application involves dependency injection at two level Wep API => Service layer => Repository layer.</p>
  
  <p>Can you suggest ideal approach to write these tests that involves mocking database context?</p>