Removing 'Options' from the 'ConfigureRouteOptions' extension method name.

This commit is contained in:
sornaks 2015-03-16 14:43:48 -07:00
parent fb08460770
commit 37dc8581de
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace Microsoft.Framework.DependencyInjection
/// </summary> /// </summary>
/// <param name="services">The services available in the application.</param> /// <param name="services">The services available in the application.</param>
/// <param name="setupAction">An action to configure the <see cref="RouteOptions"/>.</param> /// <param name="setupAction">An action to configure the <see cref="RouteOptions"/>.</param>
public static void ConfigureRouteOptions( public static void ConfigureRouting(
this IServiceCollection services, this IServiceCollection services,
[NotNull] Action<RouteOptions> setupAction) [NotNull] Action<RouteOptions> setupAction)
{ {

View File

@ -25,13 +25,13 @@ namespace Microsoft.AspNet.Routing.Tests
} }
[Fact] [Fact]
public void ConfigureRouteOptions_ConfiguresOptionsProperly() public void ConfigureRouting_ConfiguresOptionsProperly()
{ {
// Arrange // Arrange
var services = new ServiceCollection().AddOptions(); var services = new ServiceCollection().AddOptions();
// Act // Act
services.ConfigureRouteOptions(options => options.ConstraintMap.Add("foo", typeof(TestRouteConstraint))); services.ConfigureRouting(options => options.ConstraintMap.Add("foo", typeof(TestRouteConstraint)));
var serviceProvider = services.BuildServiceProvider(); var serviceProvider = services.BuildServiceProvider();
// Assert // Assert