<Add test http client with wiremock mappings in Co...
# stackoverflow
r
Add test http client with wiremock mappings in ConfigureTestServices I'm having http client of type IStorageApiClient. In my test I'm using wiremock server to fake response from particular endpoint on that IStorageApiClient. The question is how to add that storage client with wire mock given stub. I tried simply to add wiremock server address as a base uri for IStorageApiClient in ConfigureTestServices but that didn't add mappings. public static IServiceCollection AddHttpClients(this IServiceCollection services, IConfiguration configuration) {...