Skip to content

Files

Latest commit

87740ad · Aug 28, 2024

History

History

FakeHttpClient

How to test HttpClient inside API Tests

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