Removing 'Options' from the 'ConfigureRouteOptions' extension method name.
This commit is contained in:
parent
fb08460770
commit
37dc8581de
|
|
@ -17,7 +17,7 @@ namespace Microsoft.Framework.DependencyInjection
|
|||
/// </summary>
|
||||
/// <param name="services">The services available in the application.</param>
|
||||
/// <param name="setupAction">An action to configure the <see cref="RouteOptions"/>.</param>
|
||||
public static void ConfigureRouteOptions(
|
||||
public static void ConfigureRouting(
|
||||
this IServiceCollection services,
|
||||
[NotNull] Action<RouteOptions> setupAction)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue