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>
|
/// </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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue