Пример #1
0
        public async Task DeleteAsJson_WithRequest()
        {
            var client = new HttpClientInstance("https://postman-echo.com/delete");

            var request = BuildRequest();
            await client.DeleteAsync(request).ConfigureAwait(false);
        }
Пример #2
0
        public async Task DeleteAsJson_WithResponse()
        {
            var client = new HttpClientInstance("https://postman-echo.com/delete");

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

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