I am a great fan of API tests. I do like to utilize the WebApplicationFactory
for this. I even wrote some articles about this in the past "Introduction to WebApplicationFactory". But what if we need to "mock" HttpClient
calls inside our tests?
Found here