-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2002 Early removal of a replaced placeholder parameter in `Downstrea…
…mUrlCreatorMiddleware` (#2003) * issues/2002 : Regression at DownstreamUrlCreatorMiddleware * issues/2002:: add some unit tests and acceptance test * issues/2002: fix test * Apply suggestions from code review Co-authored-by: Raynald Messié <[email protected]> * issues/2002: fix build * CS8936 Feature 'collection expressions' is not available in C# 10.0. Please use language version 12.0 or greater. * Code review by @ggnaegi #2003 (review) * Original version from develop * The fix by @bbenameur with improved version by @ggnaegi * Don't order parameters, add to the end * AAA pattern in unit tests * Double-check tests * Remove BDDfy * Inherit from `Steps` * DRY in acceptance tests * Tests for #2002 user scenario * Update docs --------- Co-authored-by: Raynald Messié <[email protected]> Co-authored-by: Raman Maksimchuk <[email protected]>
- Loading branch information
1 parent
ee1fb97
commit a034e8c
Showing
5 changed files
with
1,000 additions
and
962 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 11 additions & 10 deletions
21
src/Ocelot/DownstreamRouteFinder/UrlMatcher/PlaceholderNameAndValue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
namespace Ocelot.DownstreamRouteFinder.UrlMatcher | ||
namespace Ocelot.DownstreamRouteFinder.UrlMatcher; | ||
|
||
public class PlaceholderNameAndValue | ||
{ | ||
public class PlaceholderNameAndValue | ||
public PlaceholderNameAndValue(string name, string value) | ||
{ | ||
public PlaceholderNameAndValue(string name, string value) | ||
{ | ||
Name = name; | ||
Value = value; | ||
} | ||
|
||
public string Name { get; } | ||
public string Value { get; } | ||
Name = name; | ||
Value = value; | ||
} | ||
|
||
public string Name { get; } | ||
public string Value { get; } | ||
|
||
public override string ToString() => $"[{{{Name}}}={Value}]"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.