Fix one more test.

This commit is contained in:
Chris Ross 2014-06-26 11:06:26 -07:00
parent 1d3e6b0dd0
commit 3aae5cb4fa
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ using Microsoft.AspNet.Routing;
using Moq;
using Xunit;
using System;
using System.Threading;
namespace Microsoft.AspNet.Mvc.ModelBinding.Test
{
@ -50,7 +51,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
{
var collection = Mock.Of<IReadableStringCollection>();
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>();
mockHeader.Setup(h => h["Content-Type"]).Returns(contentType);