Upgrading Moq to 4.7.1

This commit is contained in:
Kiran Challa 2017-04-20 16:28:49 -07:00 committed by Kiran Challa
parent ea3becb3ca
commit f4d84f50cd
4 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@
<DependencyModelVersion>2.0.0-*</DependencyModelVersion>
<InternalAspNetCoreSdkVersion>2.0.0-*</InternalAspNetCoreSdkVersion>
<JsonNetBsonVersion>1.0.1</JsonNetBsonVersion>
<MoqVersion>4.6.36-alpha</MoqVersion>
<MoqVersion>4.7.1</MoqVersion>
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>
<RoslynVersion>1.3.0</RoslynVersion>
<RuntimeFrameworkVersion>2.0.0-*</RuntimeFrameworkVersion>

View File

@ -252,7 +252,7 @@ namespace Microsoft.AspNetCore.Builder
var values = new RouteValueDictionary(new { area = areaName });
var match = kvp.Value.Match(
httpContext: Mock.Of<HttpContext>(),
new DefaultHttpContext(),
route: new Mock<IRouter>().Object,
routeKey: kvp.Key,
values: values,

View File

@ -225,7 +225,7 @@ namespace Microsoft.AspNetCore.Mvc.Filters
private static ActionContext CreateActionContext()
{
return new ActionContext(Mock.Of<HttpContext>(), new RouteData(), new ActionDescriptor());
return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
}
private class NoOpResult : IActionResult

View File

@ -429,8 +429,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewEngines
private static ActionContext GetActionContext()
{
var httpContext = Mock.Of<HttpContext>();
return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
}
private class TestViewEngine : IViewEngine