diff --git a/test/Microsoft.AspNet.Routing.Tests/RouterMiddlewareTest.cs b/test/Microsoft.AspNet.Routing.Tests/RouterMiddlewareTest.cs index e6a763c248..ecb7c7590b 100644 --- a/test/Microsoft.AspNet.Routing.Tests/RouterMiddlewareTest.cs +++ b/test/Microsoft.AspNet.Routing.Tests/RouterMiddlewareTest.cs @@ -26,8 +26,7 @@ namespace Microsoft.AspNet.Routing var loggerFactory = new TestLoggerFactory(sink, enabled: true); var httpContext = new DefaultHttpContext(); - httpContext.ApplicationServices = new ServiceProvider(); - httpContext.RequestServices = httpContext.ApplicationServices; + httpContext.RequestServices = new ServiceProvider(); RequestDelegate next = (c) => { @@ -58,8 +57,7 @@ namespace Microsoft.AspNet.Routing var loggerFactory = new TestLoggerFactory(sink, enabled: true); var httpContext = new DefaultHttpContext(); - httpContext.ApplicationServices = new ServiceProvider(); - httpContext.RequestServices = httpContext.ApplicationServices; + httpContext.RequestServices = new ServiceProvider(); RequestDelegate next = (c) => {