Fix one more test.
This commit is contained in:
parent
1d3e6b0dd0
commit
3aae5cb4fa
|
|
@ -10,6 +10,7 @@ using Microsoft.AspNet.Routing;
|
||||||
using Moq;
|
using Moq;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Mvc.ModelBinding.Test
|
namespace Microsoft.AspNet.Mvc.ModelBinding.Test
|
||||||
{
|
{
|
||||||
|
|
@ -50,7 +51,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
|
||||||
{
|
{
|
||||||
var collection = Mock.Of<IReadableStringCollection>();
|
var collection = Mock.Of<IReadableStringCollection>();
|
||||||
var request = new Mock<HttpRequest>();
|
var request = new Mock<HttpRequest>();
|
||||||
request.Setup(f => f.GetFormAsync()).Returns(Task.FromResult(collection));
|
request.Setup(f => f.GetFormAsync(CancellationToken.None)).Returns(Task.FromResult(collection));
|
||||||
|
|
||||||
var mockHeader = new Mock<IHeaderDictionary>();
|
var mockHeader = new Mock<IHeaderDictionary>();
|
||||||
mockHeader.Setup(h => h["Content-Type"]).Returns(contentType);
|
mockHeader.Setup(h => h["Content-Type"]).Returns(contentType);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue