Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Using new StringRouteConstraint for area constraint #5119

Closed
wants to merge 3 commits into from
Closed

Using new StringRouteConstraint for area constraint #5119

wants to merge 3 commits into from

Conversation

iscifoni
Copy link
Contributor

@iscifoni iscifoni commented Aug 5, 2016

related to #4846 MapAreaRoute constraint not escaped

@rynowak @Eilon @sebastienros

@@ -33,7 +33,7 @@ public void MapAreaRoute_Simple()
kvp =>
{
Assert.Equal(kvp.Key, "area");
Assert.IsType<RegexRouteConstraint>(kvp.Value);
Assert.IsType<StringRouteConstraint>(kvp.Value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be useful to check if the value in StringRouteConstraint is the original value (and not escaped in any way)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 😄

@iscifoni
Copy link
Contributor Author

iscifoni commented Aug 5, 2016

🆙 📅

@@ -9,6 +9,7 @@
using Microsoft.Extensions.DependencyInjection;
using Moq;
using Xunit;
using Microsoft.AspNetCore.Http;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ops 😃

@pranavkm
Copy link
Contributor

pranavkm commented Aug 5, 2016

LKGTM. I'll let @rynowak sign off on this.

@iscifoni
Copy link
Contributor Author

iscifoni commented Aug 5, 2016

🆙 📅

@rynowak
Copy link
Member

rynowak commented Aug 8, 2016

:shipit: from me, I'll take care of merging

@rynowak
Copy link
Member

rynowak commented Aug 8, 2016

Merged as 6e5187c - @iscifoni Thanks! 👍

@rynowak rynowak closed this Aug 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants