Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public static TClient GetClient <TClient, TStartup>(this WebApplicationFactory <TStartup> factory) where TClient : class where TStartup : class { var httpClient = factory.CreateHttpClient(); var settings = new RefitSettings(); settings.ContentSerializer = new CybtansContentSerializer(settings.ContentSerializer); return(RestService.For <TClient>(httpClient, settings)); }