Exemplo n.º 1
0
        public void EnableCreationOfHttpClient()
        {
            _httpClientFactory.Clear();
            IHttpClient jwtClient = _httpClientFactory.Create("jwtV1", Configuration.IdentityProvider);

            Assert.NotNull(jwtClient);
        }
Exemplo n.º 2
0
        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);
        }