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.
Can you suggest ideal approach to write these tests that involves mocking database context?