ended9μ 7μΌΒ· 1 sources
Testing HttpClient the Right Way: Mock Handlers, Not Interfaces
Why it matters
Hey test-loving developers! π I see this pattern ALL the time: // β The wrong way public interface IHttpClientWrapper { Task<T> GetAsync<T>(string url); Task<T> PostAsync<T>(string url, object data); ...
1
Sources
+0
24h
β
Growth
14d
Active