コード例 #1
0
        public async Task PutAsJson_WithRequest()
        {
            var client = new HttpClientInstance("https://postman-echo.com/put");

            var request = BuildRequest();
            await client.PutAsync(request).ConfigureAwait(false);
        }
コード例 #2
0
        public async Task PutAsJson_WithResponse()
        {
            var client = new HttpClientInstance("https://postman-echo.com/put");

            var request  = BuildRequest();
            var response = await client.PutAsync <Response>().ConfigureAwait(false);

            response.Url.Should().Be("https://postman-echo.com/put");
        }