From 779edb6fe13cb37b8e88c627b3ceae71f42d6862 Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Mon, 22 Feb 2016 11:43:08 -0800 Subject: [PATCH] React to Routing service collection extension changes --- .../Internal/AttributeRoutingTest.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/AttributeRoutingTest.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/AttributeRoutingTest.cs index 750f1c1c88..d23ef7fc48 100644 --- a/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/AttributeRoutingTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/AttributeRoutingTest.cs @@ -193,11 +193,13 @@ namespace Microsoft.AspNetCore.Mvc.Internal .SetupGet(o => o.Value) .Returns(new RouteOptions()); - return new ServiceCollection() + var services = new ServiceCollection() .AddSingleton(new DefaultInlineConstraintResolver(routeOptions.Object)) - .AddSingleton(new UrlTestEncoder()) - .AddRouting() - .AddSingleton(actionDescriptorProvider.Object) + .AddSingleton(new UrlTestEncoder()); + + services.AddRouting(); + + return services.AddSingleton(actionDescriptorProvider.Object) .AddSingleton(NullLoggerFactory.Instance) .BuildServiceProvider(); }