public async void AcceptPosts() { _httpClientFactory.Clear(); IHttpClient jwtClient = _httpClientFactory.Create("jwtV1", Configuration.IdentityProvider); var result = await jwtClient.Post <dynamic, string>(new { Username = "******", Password = "******" }, "jwt"); Assert.NotNull(result); Assert.False(string.IsNullOrEmpty(result)); _outputHelper.WriteLine(result); }
public void EnableCreationOfHttpClient() { _httpClientFactory.Clear(); IHttpClient jwtClient = _httpClientFactory.Create("jwtV1", Configuration.IdentityProvider); Assert.NotNull(jwtClient); }