diff --git a/src/Microsoft.AspNet.Routing/ServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Routing/ServiceCollectionExtensions.cs index ceb6f59f3e..9f5654bd1d 100644 --- a/src/Microsoft.AspNet.Routing/ServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Routing/ServiceCollectionExtensions.cs @@ -17,7 +17,7 @@ namespace Microsoft.Framework.DependencyInjection /// /// The services available in the application. /// An action to configure the . - public static void ConfigureRouteOptions( + public static void ConfigureRouting( this IServiceCollection services, [NotNull] Action setupAction) { diff --git a/test/Microsoft.AspNet.Routing.Tests/RouteOptionsTests.cs b/test/Microsoft.AspNet.Routing.Tests/RouteOptionsTests.cs index bf3ded5011..d38dba02f5 100644 --- a/test/Microsoft.AspNet.Routing.Tests/RouteOptionsTests.cs +++ b/test/Microsoft.AspNet.Routing.Tests/RouteOptionsTests.cs @@ -25,13 +25,13 @@ namespace Microsoft.AspNet.Routing.Tests } [Fact] - public void ConfigureRouteOptions_ConfiguresOptionsProperly() + public void ConfigureRouting_ConfiguresOptionsProperly() { // Arrange var services = new ServiceCollection().AddOptions(); // Act - services.ConfigureRouteOptions(options => options.ConstraintMap.Add("foo", typeof(TestRouteConstraint))); + services.ConfigureRouting(options => options.ConstraintMap.Add("foo", typeof(TestRouteConstraint))); var serviceProvider = services.BuildServiceProvider(); // Assert