StevenGiesel_BlogExamples/FakeHttpClient at main · terjew/StevenGiesel_BlogExamples · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

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