Handle ReadForAsync changes.

This commit is contained in:
Chris Ross 2015-01-07 18:30:36 -08:00
parent 97b151f2c2
commit 44dadb1d0f
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ namespace Microsoft.AspNet.Diagnostics.Tests
.SetupGet(c => c.Request.Cookies)
.Returns(new Mock<IReadableStringCollection>().Object);
contextMock
.Setup(c => c.Request.GetFormAsync(It.IsAny<System.Threading.CancellationToken>()))
.Returns(Task.FromResult(new Mock<IReadableStringCollection>().Object));
.Setup(c => c.Request.ReadFormAsync(It.IsAny<System.Threading.CancellationToken>()))
.Returns(Task.FromResult(new Mock<IFormCollection>().Object));
return contextMock;
}