diff options
author | Pranav K <prkrishn@hotmail.com> | 2021-11-06 03:52:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 03:52:08 +0300 |
commit | a450cb69b5e4549f5515cdb057a68771f56cefd7 (patch) | |
tree | b31cc4cd3257b8aeec14a5481121dac6964195a6 /src/Http/Http.Results/test/TestLinkGenerator.cs | |
parent | b9fcd82fe9d0883e9828864a8e8b2231f469254f (diff) |
Use file scoped namespaces (#38076)
* Use file scoped namespaces
Diffstat (limited to 'src/Http/Http.Results/test/TestLinkGenerator.cs')
-rw-r--r-- | src/Http/Http.Results/test/TestLinkGenerator.cs | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/src/Http/Http.Results/test/TestLinkGenerator.cs b/src/Http/Http.Results/test/TestLinkGenerator.cs index ec026e13a7..8f8d9e0167 100644 --- a/src/Http/Http.Results/test/TestLinkGenerator.cs +++ b/src/Http/Http.Results/test/TestLinkGenerator.cs @@ -4,26 +4,25 @@ using System; using Microsoft.AspNetCore.Routing; -namespace Microsoft.AspNetCore.Http.Result +namespace Microsoft.AspNetCore.Http.Result; + +internal sealed class TestLinkGenerator : LinkGenerator { - internal sealed class TestLinkGenerator : LinkGenerator - { - public string Url { get; set; } + public string Url { get; set; } - public override string GetPathByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null) - { - throw new NotImplementedException(); - } + public override string GetPathByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null) + { + throw new NotImplementedException(); + } - public override string GetPathByAddress<TAddress>(TAddress address, RouteValueDictionary values, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null) - { - throw new NotImplementedException(); - } + public override string GetPathByAddress<TAddress>(TAddress address, RouteValueDictionary values, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null) + { + throw new NotImplementedException(); + } - public override string GetUriByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, string scheme = null, HostString? host = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null) - => Url; + public override string GetUriByAddress<TAddress>(HttpContext httpContext, TAddress address, RouteValueDictionary values, RouteValueDictionary ambientValues = null, string scheme = null, HostString? host = null, PathString? pathBase = null, FragmentString fragment = default, LinkOptions options = null) + => Url; - public override string GetUriByAddress<TAddress>(TAddress address, RouteValueDictionary values, string scheme, HostString host, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null) - => Url; - } + public override string GetUriByAddress<TAddress>(TAddress address, RouteValueDictionary values, string scheme, HostString host, PathString pathBase = default, FragmentString fragment = default, LinkOptions options = null) + => Url; } |