public async Task Test200ResponseAsync()
        {
            var sender = new StatusCodeSender(new MockStatusCodeSender(200));

            var response = await sender.SendAsync(new Request());

            Assert.AreEqual(200, response.StatusCode);
        }
Ejemplo n.º 2
0
 private static async Task SendAsync(int statusCode)
 {
     var inner  = new MockStatusCodeSender(statusCode);
     var sender = new StatusCodeSender(inner);
     await sender.SendAsync(new Request());
 }
        private static Task AssertSendAsync(int statusCode)
        {
            var sender = new StatusCodeSender(new MockStatusCodeSender(statusCode));

            return(sender.SendAsync(new Request()));
        }