Skip to content

Commit 44dadb1

Browse files
committed
Handle ReadForAsync changes.
1 parent 97b151f commit 44dadb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.AspNet.Diagnostics.Tests/ElmMiddlewareTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ private Mock<HttpContext> GetMockContext(string path)
205205
.SetupGet(c => c.Request.Cookies)
206206
.Returns(new Mock<IReadableStringCollection>().Object);
207207
contextMock
208-
.Setup(c => c.Request.GetFormAsync(It.IsAny<System.Threading.CancellationToken>()))
209-
.Returns(Task.FromResult(new Mock<IReadableStringCollection>().Object));
208+
.Setup(c => c.Request.ReadFormAsync(It.IsAny<System.Threading.CancellationToken>()))
209+
.Returns(Task.FromResult(new Mock<IFormCollection>().Object));
210210

211211
return contextMock;
212212
}

0 commit comments

Comments
 (0)