Upgrading Moq to 4.7.1
This commit is contained in:
parent
ea3becb3ca
commit
f4d84f50cd
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue