diff --git a/test/Microsoft.AspNet.Routing.Tests/InlineRouteParameterParserTests.cs b/test/Microsoft.AspNet.Routing.Tests/InlineRouteParameterParserTests.cs index 4765ad189e..84ceee0c64 100644 --- a/test/Microsoft.AspNet.Routing.Tests/InlineRouteParameterParserTests.cs +++ b/test/Microsoft.AspNet.Routing.Tests/InlineRouteParameterParserTests.cs @@ -296,7 +296,7 @@ namespace Microsoft.AspNet.Routing.Tests private static IInlineConstraintResolver GetConstraintResolver() { var services = new ServiceCollection { OptionsServices.GetDefaultServices() }; - services.SetupOptions(options => + services.ConfigureOptions(options => options .ConstraintMap .Add("test", typeof(TestRouteConstraint)));