From acea87a61711ff4d9c637bbd7473234a1ade3e74 Mon Sep 17 00:00:00 2001 From: "kishan.anem" Date: Fri, 1 Jun 2018 07:06:17 +0530 Subject: [PATCH] IUrlHelper and support for RouteOptions.LowercaseUrls changes are made as suggestions. @rynowak #518 #Issue: aspnet/Mvc#7720 --- src/Microsoft.AspNetCore.Routing/RouteOptions.cs | 6 ++++-- .../RouteCollectionTest.cs | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.AspNetCore.Routing/RouteOptions.cs b/src/Microsoft.AspNetCore.Routing/RouteOptions.cs index 6cf08bd68a..b5c5bd544f 100644 --- a/src/Microsoft.AspNetCore.Routing/RouteOptions.cs +++ b/src/Microsoft.AspNetCore.Routing/RouteOptions.cs @@ -10,12 +10,14 @@ namespace Microsoft.AspNetCore.Routing public class RouteOptions { /// - /// Gets or sets a value indicating whether all generated URLs are lower-case. it doesn't include the query string. + /// Gets or sets a value indicating whether all generated paths URLs are lower-case. + /// Use to configure the behavior for query strings. /// public bool LowercaseUrls { get; set; } /// - /// Gets or sets a value indicating whether all generated QUERY STRINGS are lower-case. property will when LowercaseUrls true. + /// Gets or sets a value indicating whether a generated query strings are lower-case. + /// This property will be unless is also true /// public bool LowercaseQueryStrings { get; set; } diff --git a/test/Microsoft.AspNetCore.Routing.Tests/RouteCollectionTest.cs b/test/Microsoft.AspNetCore.Routing.Tests/RouteCollectionTest.cs index a92bccdfcc..b7eab2f10b 100644 --- a/test/Microsoft.AspNetCore.Routing.Tests/RouteCollectionTest.cs +++ b/test/Microsoft.AspNetCore.Routing.Tests/RouteCollectionTest.cs @@ -701,7 +701,8 @@ namespace Microsoft.AspNetCore.Routing private static Action GetRouteOptions( bool lowerCaseUrls = false, - bool appendTrailingSlash = false, bool lowercaseQueryStrings = false) + bool appendTrailingSlash = false, + bool lowercaseQueryStrings = false) { return (options) => {