Fixing tests after ElmMiddleware change
This commit is contained in:
parent
cb159a678a
commit
ac63ee96ae
|
|
@ -210,6 +210,9 @@ namespace Microsoft.AspNet.Diagnostics.Tests
|
||||||
contextMock
|
contextMock
|
||||||
.Setup(c => c.Request.ReadFormAsync(It.IsAny<System.Threading.CancellationToken>()))
|
.Setup(c => c.Request.ReadFormAsync(It.IsAny<System.Threading.CancellationToken>()))
|
||||||
.Returns(Task.FromResult(new Mock<IFormCollection>().Object));
|
.Returns(Task.FromResult(new Mock<IFormCollection>().Object));
|
||||||
|
contextMock
|
||||||
|
.Setup(c => c.Request.HasFormContentType)
|
||||||
|
.Returns(true);
|
||||||
|
|
||||||
return contextMock;
|
return contextMock;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue