Beispiel #1
0
        public Task Run(TestContext ctx, CancellationToken cancellationToken, HttpServer server,
                        [ChunkedOperationType] ChunkedOperationType type, bool sendAsync)
        {
            var runner = ChunkedOperation.Create(server, type, sendAsync);

            return(runner.Run(ctx, cancellationToken));
        }
Beispiel #2
0
        public Task ServerErrorTests(TestContext ctx, HttpServer server, bool sendAsync,
                                     [ChunkedOperationType(ServerError = true)] ChunkedOperationType type,
                                     CancellationToken cancellationToken)
        {
            var runner = ChunkedOperation.Create(server, type, sendAsync);

            return(runner.Run(ctx, cancellationToken));
        }