자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public static HttpClient CreateClientWithTestAuth <T>(this WebApplicationFactory <T> factory) where T : class { var client = factory.WithTestAuthentication().CreateClient(new WebApplicationFactoryClientOptions { AllowAutoRedirect = false }); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Test"); return(client); }