Beispiel #1
0
        public async void ReturnsTrueForNotCanceledRequest()
        {
            var context = new ApiRequestContext
            {
                RequestAborted = new System.Threading.CancellationToken(false)
            };

            var processed = await context.ProcessHttpRequestCanceled().ConfigureAwait(false);

            processed.Should().BeTrue();

            context.Response.Should().NotBeNull();
            context.Response.ResponseObject.Should().BeNull();
        }