328 references to PathString
Diagnostics.EFCore.FunctionalTests (2)
DatabaseErrorPageMiddlewareTest.cs (1)
345MigrationsEndPointPath = new PathString(migrationsEndpoint)
MigrationsEndPointMiddlewareTest.cs (1)
81var path = useCustomPath ? new PathString("/EndPoints/ApplyMyMigrations") : MigrationsEndPointOptions.DefaultPath;
IIS.Microbenchmarks (1)
PlaintextBenchmark.cs (1)
44private static readonly PathString _path = new PathString("/plaintext");
InMemory.FunctionalTests (1)
RequestTests.cs (1)
267Assert.Equal(new PathString(expectedPath), await pathTcs.Task);
Microsoft.AspNetCore.Authentication.Cookies (3)
CookieAuthenticationDefaults.cs (3)
27public static readonly PathString LoginPath = new PathString("/Account/Login"); 33public static readonly PathString LogoutPath = new PathString("/Account/Logout"); 39public static readonly PathString AccessDeniedPath = new PathString("/Account/AccessDenied");
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookOptions.cs (1)
20CallbackPath = new PathString("/signin-facebook");
Microsoft.AspNetCore.Authentication.Google (1)
GoogleOptions.cs (1)
20CallbackPath = new PathString("/signin-google");
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountOptions.cs (1)
20CallbackPath = new PathString("/signin-microsoft");
Microsoft.AspNetCore.Authentication.OpenIdConnect (7)
OpenIdConnectConfigureOptions.cs (4)
43options.AccessDeniedPath = new PathString(configSection[nameof(options.AccessDeniedPath)] ?? options.AccessDeniedPath.Value); 47options.CallbackPath = new PathString(configSection[nameof(options.CallbackPath)] ?? options.CallbackPath.Value); 68options.RemoteSignOutPath = new PathString(configSection[nameof(options.RemoteSignOutPath)] ?? options.RemoteSignOutPath.Value); 76options.SignedOutCallbackPath = new PathString(configSection[nameof(options.SignedOutCallbackPath)] ?? options.SignedOutCallbackPath.Value);
OpenIdConnectOptions.cs (3)
44CallbackPath = new PathString("/signin-oidc"); 45SignedOutCallbackPath = new PathString("/signout-callback-oidc"); 46RemoteSignOutPath = new PathString("/signout-oidc");
Microsoft.AspNetCore.Authentication.Test (87)
CookieTests.cs (27)
131o.LoginPath = new PathString("/login"); 258o.LoginPath = new PathString("/login"); 301o.LoginPath = new PathString("/login"); 314o.LoginPath = new PathString("/login"); 336o.LoginPath = new PathString("/login"); 1158Assert.Equal(new PathString("/base"), context.Request.PathBase); 1202o.LoginPath = new PathString("/page"); 1218o.LoginPath = new PathString("/page"); 1245.ConfigureServices(s => s.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1358.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1380.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1406.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1428.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1454.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1479.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1622.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1820if (req.Path == new PathString("/normal")) 1824else if (req.Path == new PathString("/forbid")) // Simulate forbidden 1828else if (req.Path == new PathString("/challenge")) 1832else if (req.Path == new PathString("/signinalice")) 1836else if (req.Path == new PathString("/signout")) 1840else if (req.Path == new PathString("/unauthorized")) 1844else if (req.Path == new PathString("/protected/CustomRedirect")) 1848else if (req.Path == new PathString("/me")) 1852else if (req.Path.StartsWithSegments(new PathString("/me"), out remainder)) 1857else if (req.Path == new PathString("/testpath") && testpath != null) 1861else if (req.Path == new PathString("/checkforerrors"))
DynamicSchemeTests.cs (3)
141if (req.Path.StartsWithSegments(new PathString("/add"), out var remainder)) 148else if (req.Path.StartsWithSegments(new PathString("/auth"), out remainder)) 154else if (req.Path.StartsWithSegments(new PathString("/remove"), out remainder))
GoogleTests.cs (17)
170if (req.Path == new PathString("/challenge2")) 222if (req.Path == new PathString("/challenge2")) 274if (req.Path == new PathString("/challenge2")) 351if (req.Path == new PathString("/auth")) 1156if (req.Path == new PathString("/challenge")) 1160else if (req.Path == new PathString("/challengeFacebook")) 1164else if (req.Path == new PathString("/tokens")) 1170else if (req.Path == new PathString("/me")) 1174else if (req.Path == new PathString("/authenticate")) 1179else if (req.Path == new PathString("/authenticateGoogle")) 1184else if (req.Path == new PathString("/authenticateFacebook")) 1189else if (req.Path == new PathString("/unauthorized")) 1195else if (req.Path == new PathString("/unauthorizedAuto")) 1200else if (req.Path == new PathString("/401")) 1204else if (req.Path == new PathString("/signIn")) 1208else if (req.Path == new PathString("/signOut")) 1212else if (req.Path == new PathString("/forbid"))
JwtBearerTests.cs (8)
1174if (context.Request.Path == new PathString("/checkforerrors")) 1183else if (context.Request.Path == new PathString("/oauth")) 1204else if (context.Request.Path == new PathString("/token")) 1209else if (context.Request.Path == new PathString("/unauthorized")) 1215else if (context.Request.Path == new PathString("/forbidden")) 1220else if (context.Request.Path == new PathString("/signIn")) 1224else if (context.Request.Path == new PathString("/signOut")) 1228else if (context.Request.Path == new PathString("/expiration"))
JwtBearerTests_Handler.cs (8)
1233if (context.Request.Path == new PathString("/checkforerrors")) 1242else if (context.Request.Path == new PathString("/oauth")) 1263else if (context.Request.Path == new PathString("/token")) 1268else if (context.Request.Path == new PathString("/unauthorized")) 1274else if (context.Request.Path == new PathString("/forbidden")) 1279else if (context.Request.Path == new PathString("/signIn")) 1283else if (context.Request.Path == new PathString("/signOut")) 1287else if (context.Request.Path == new PathString("/expiration"))
MicrosoftAccountTests.cs (7)
367if (req.Path == new PathString("/challenge")) 380else if (req.Path == new PathString("/challengeWithOtherScope")) 386else if (req.Path == new PathString("/challengeWithOtherScopeWithBaseAuthenticationProperties")) 392else if (req.Path == new PathString("/me")) 396else if (req.Path == new PathString("/signIn")) 400else if (req.Path == new PathString("/signOut")) 404else if (req.Path == new PathString("/forbid"))
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (2)
22opt.CallbackPath = new PathString("/"); 47opt.CallbackPath = new PathString("/");
OpenIdConnect\OpenIdConnectTests.cs (1)
448Assert.Equal(new PathString("/signin-oidc"), options.CallbackPath); // Assert default callback paths are respected
OpenIdConnect\TestServerBuilder.cs (6)
75if (req.Path == new PathString(Challenge)) 79else if (req.Path == new PathString(ChallengeWithProperties)) 83else if (req.Path == new PathString(ChallengeWithOutContext)) 87else if (req.Path == new PathString(Signin)) 91else if (req.Path == new PathString(Signout)) 95else if (req.Path == new PathString("/signout_with_specific_redirect_uri"))
PolicyTests.cs (1)
474if (req.Path.StartsWithSegments(new PathString("/auth"), out var remainder))
TwitterTests.cs (5)
547if (req.Path == new PathString("/signIn")) 551else if (req.Path == new PathString("/signOut")) 555else if (req.Path == new PathString("/forbid")) 559else if (req.Path == new PathString("/me")) 563else if (req.Path == new PathString("/tokens"))
WsFederation\WsFederationTest.cs (1)
346context.HttpContext.Request.Path = new PathString("/AuthenticationFailed");
WsFederation\WsFederationTest_Handler.cs (1)
342context.HttpContext.Request.Path = new PathString("/AuthenticationFailed");
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
24CallbackPath = new PathString("/signin-twitter");
Microsoft.AspNetCore.Diagnostics (4)
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
46ExceptionHandlingPath = new PathString(errorHandlingPath) 64ExceptionHandlingPath = new PathString(errorHandlingPath),
StatusCodePage\StatusCodePagesExtensions.cs (1)
169var newPath = new PathString(
WelcomePage\WelcomePageExtensions.cs (1)
57Path = new PathString(path)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointOptions.cs (1)
18public static PathString DefaultPath = new PathString("/ApplyDatabaseMigrations");
Microsoft.AspNetCore.Hosting.Tests (2)
Internal\HostingRequestStartLogTests.cs (2)
21mockRequest.Setup(request => request.PathBase).Returns(new PathString("/")); 22mockRequest.Setup(request => request.Path).Returns(new PathString("/"));
Microsoft.AspNetCore.Http (2)
Internal\DefaultHttpRequest.cs (2)
69get { return new PathString(HttpRequestFeature.PathBase); } 75get { return new PathString(HttpRequestFeature.Path); }
Microsoft.AspNetCore.Http.Abstractions (11)
Extensions\UsePathBaseExtensions.cs (1)
26pathBase = new PathString(pathBase.Value?.TrimEnd('/'));
PathString.cs (10)
30public static readonly PathString Empty = new(string.Empty); 185return new PathString(uriComponent); 191return new PathString(pathBuffer.ToString()); 207return new PathString(pathBuffer.ToString()); 290remaining = new PathString(value1[value2.Length..]); 340matched = new PathString(value1.Substring(0, value2.Length)); 341remaining = new PathString(value1[value2.Length..]); 363return new PathString(combined); 366return new PathString(Value + other.Value); 509=> string.IsNullOrEmpty(s) ? new PathString(s) : FromUriComponent(s);
Microsoft.AspNetCore.Http.Abstractions.Tests (32)
MapPathMiddlewareTests.cs (3)
58builder.Map(new PathString(matchPath), UseSuccess); 241context.Request.PathBase = new PathString(basePath); 242context.Request.Path = new PathString(requestPath);
PathStringTests.cs (26)
16ExceptionAssert.ThrowsArgument(() => new PathString("hello"), "value", "The path in 'value' must start with '/'."); 35var pathString = new PathString("/hello"); 45var pathString = new PathString("/hello"); 63var appPath = new PathString(appString); 64var concatPath = new PathString(concatString); 83var appPath = new PathString(appString); 84var concatPath = new PathString(concatString); 98var pathBase = new PathString("/base"); 99var path = new PathString("/path"); 121var source = new PathString(sourcePath); 122var test = new PathString(testPath); 137var source = new PathString(sourcePath); 138var test = new PathString(testPath); 153var source = new PathString(sourcePath); 154var test = new PathString(testPath); 169var source = new PathString(sourcePath); 170var test = new PathString(testPath); 190var source = new PathString(sourcePath); 191var test = new PathString(testPath); 211var source = new PathString(sourcePath); 212var test = new PathString(testPath); 232var source = new PathString(sourcePath); 233var test = new PathString(testPath); 253var source = new PathString(sourcePath); 254var test = new PathString(testPath); 284var path = new PathString(input);
UsePathBaseExtensionsTests.cs (3)
212.UsePathBase(new PathString(registeredPathBase)); 233context.Request.PathBase = new PathString(pathBase); 234context.Request.Path = new PathString(requestPath);
Microsoft.AspNetCore.Http.Extensions.Tests (12)
UriHelperTests.cs (12)
19var result = UriHelper.BuildRelative(new PathString("/un?escaped/base"), new PathString("/un?escaped"), 36var result = UriHelper.BuildAbsolute("http", new HostString("my.HoΨst:80"), new PathString("/un?escaped/base"), new PathString("/un?escaped"), 75new PathString(pathBase), 76new PathString(path), 89request.PathBase = new PathString("/un?escaped/base"); 90request.Path = new PathString("/un?escaped"); 104request.PathBase = new PathString(pathBase); 105request.Path = new PathString("/un?escaped"); 144Assert.Equal(path, new PathString(expectedPath)); 154var path = new PathString("/index.html");
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
22var segment = new PathString(contentPath.Substring(1));
Microsoft.AspNetCore.Http.Results.Tests (9)
CreatedAtRouteOfTResultTests.cs (1)
182httpContext.Request.PathBase = new PathString("");
CreatedAtRouteResultTests.cs (1)
128httpContext.Request.PathBase = new PathString("");
CreatedOfTResultTests.cs (1)
179httpContext.Request.PathBase = new PathString("");
CreatedResultTests.cs (1)
116httpContext.Request.PathBase = new PathString("");
EmptyResultTests.cs (1)
40httpContext.Request.PathBase = new PathString("");
LocalRedirectResultTests.cs (1)
132httpContext.Request.PathBase = new PathString(appRoot);
NotFoundOfTResultTests.cs (1)
142httpContext.Request.PathBase = new PathString("");
NotFoundResultTests.cs (1)
91httpContext.Request.PathBase = new PathString("");
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
74httpContext.Request.PathBase = new PathString(appRoot);
Microsoft.AspNetCore.HttpLogging.Tests (3)
HttpLoggingMiddlewareTests.cs (2)
1959httpContext.Request.Path = new PathString("/foo"); 1960httpContext.Request.PathBase = new PathString("/foo");
W3CLoggingMiddlewareTests.cs (1)
57httpContext.Request.Path = new PathString("/foo");
Microsoft.AspNetCore.HttpOverrides.Tests (1)
ForwardedHeadersMiddlewareTest.cs (1)
1199c.Request.PathBase = new PathString(pathBase);
Microsoft.AspNetCore.Identity (2)
IdentityCookiesBuilderExtensions.cs (1)
51o.LoginPath = new PathString("/Account/Login");
IdentityServiceCollectionExtensions.cs (1)
61o.LoginPath = new PathString("/Account/Login");
Microsoft.AspNetCore.Identity.InMemory.Test (11)
FunctionalTest.cs (11)
306if (req.Path == new PathString("/normal")) 310else if (req.Path == new PathString("/createMe")) 324else if (req.Path == new PathString("/createSimple")) 329else if (req.Path == new PathString("/signoutEverywhere")) 335else if (req.Path.StartsWithSegments(new PathString("/pwdLogin"), out remainder)) 341else if (req.Path == new PathString("/twofactorRememeber")) 347else if (req.Path == new PathString("/isTwoFactorRememebered")) 353else if (req.Path == new PathString("/hasTwoFactorUserId")) 358else if (req.Path == new PathString("/me")) 362else if (req.Path.StartsWithSegments(new PathString("/me"), out remainder)) 367else if (req.Path == new PathString("/testpath") && testpath != null)
Microsoft.AspNetCore.Mvc.Core (2)
Routing\UrlHelperBase.cs (1)
304var segment = new PathString(contentPath.Substring(1));
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
22var segment = new PathString(contentPath.Substring(1));
Microsoft.AspNetCore.Mvc.Core.Test (21)
CreatedAtActionResultTests.cs (1)
78httpContext.Request.PathBase = new PathString("");
CreatedAtRouteResultTests.cs (1)
92httpContext.Request.PathBase = new PathString("");
CreatedResultTests.cs (1)
125httpContext.Request.PathBase = new PathString("");
HttpNotFoundObjectResultTest.cs (1)
58httpContext.Request.PathBase = new PathString("");
LocalRedirectResultTest.cs (1)
150httpContext.Request.PathBase = new PathString(appRoot);
RequireHttpsAttributeTests.cs (2)
77requestContext.Request.PathBase = new PathString(pathBase); 82requestContext.Request.Path = new PathString(path);
Routing\AttributeRouteTest.cs (1)
81httpContext.Request.Path = new PathString("/api/Store/Buy/5");
Routing\ControllerLinkGeneratorExtensionsTest.cs (5)
58httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 92new PathString("/Foo/Bar?encodeme?"), 116httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 153new PathString("/Foo/Bar?encodeme?"), 179httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
Routing\PageLinkGeneratorExtensionsTest.cs (5)
30httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 63new PathString("/Foo/Bar?encodeme?"), 87httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 123new PathString("/Foo/Bar?encodeme?"), 149httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
Routing\UrlHelperBaseTest.cs (1)
125context.Request.PathBase = new PathString(appRoot);
Routing\UrlHelperTestBase.cs (1)
1152context.Request.PathBase = new PathString(appRoot);
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
74httpContext.Request.PathBase = new PathString(appRoot);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
159var relativePath = new PathString("/" + matchedPath.Path);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
DefaultFileVersionProviderTest.cs (1)
335return new PathString(requestPathBase);
GlobbingUrlBuilderTest.cs (1)
230var requestPathBase = new PathString(pathBase);
ImageTagHelperTest.cs (2)
200helper.ViewContext.HttpContext.Request.PathBase = new PathString(pathBase); 296actionContext.HttpContext.Request.PathBase = new Http.PathString(requestPathBase);
LinkTagHelperTest.cs (1)
1127actionContext.HttpContext.Request.PathBase = new PathString(requestPathBase);
ScriptTagHelperTest.cs (1)
1108actionContext.HttpContext.Request.PathBase = new PathString(requestPathBase);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Rendering\HtmlHelperFormTest.cs (4)
139request.PathBase = new PathString(pathBase); 140request.Path = new PathString(path); 189request.PathBase = new PathString(pathBase); 190request.Path = new PathString(path);
Microsoft.AspNetCore.Owin.Tests (2)
OwinEnvironmentTests.cs (2)
26context.Request.Path = new PathString("/path"); 27context.Request.PathBase = new PathString("/pathBase");
Microsoft.AspNetCore.Rewrite.Tests (3)
PatternSegments\RequestFilenameSegmentTests.cs (1)
17context.HttpContext.Request.Path = new PathString("/foo/bar");
PatternSegments\ServerNameSegmentTests.cs (1)
22httpContext.Request.Path = new PathString("/foo/bar");
PatternSegments\UrlSegmentTests.cs (1)
31httpContext.Request.Path = new PathString(path);
Microsoft.AspNetCore.Routing (1)
UriBuildingContext.cs (1)
258pathString = new PathString(_path.ToString());
Microsoft.AspNetCore.Routing.Tests (23)
DefaultLinkGeneratorTest.cs (4)
300new PathString("/Foo/Bar?encodeme?"), 367httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 396new PathString("/Foo/Bar?encodeme?"), 416httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
LinkGeneratorEndpointNameExtensionsTest.cs (5)
28httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 59new PathString("/Foo/Bar?encodeme?"), 77httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 110new PathString("/Foo/Bar?encodeme?"), 130httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
LinkGeneratorRouteValuesAddressExtensionsTest.cs (6)
34httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 67new PathString("/Foo/Bar?encodeme?"), 91httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 126new PathString("/Foo/Bar?encodeme?"), 152httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?"); 184httpContext.Request.PathBase = new PathString("/Foo/Bar?encodeme?");
PathTokenizerTest.cs (3)
82var tokenizer = new PathTokenizer(new PathString(path)); 96var tokenizer = new PathTokenizer(new PathString(path)); 110var tokenizer = new PathTokenizer(new PathString(path));
Patterns\RoutePatternMatcherTest.cs (1)
1111var match = matcher.TryMatch(new PathString(path), values);
RequestDelegateRouteBuilderExtensionsTest.cs (2)
51context.HttpContext.Request.Path = new PathString("/api/5"); 109context.HttpContext.Request.Path = new PathString("/api/5");
Template\TemplateMatcherTests.cs (1)
1110var match = matcher.TryMatch(new PathString(path), values);
Tree\TreeRouterTest.cs (1)
1987request.SetupGet(r => r.Path).Returns(new PathString(requestPath));
Microsoft.AspNetCore.Server.HttpSys (2)
UrlPrefixCollection.cs (2)
84var originalPathString = new PathString(originalPath); 96&& originalPathString.StartsWithSegments(new PathString(prefix.PathWithoutTrailingSlash), StringComparison.OrdinalIgnoreCase, out var remainder)
Microsoft.AspNetCore.Server.IISIntegration (2)
IISMiddleware.cs (1)
28private static readonly PathString ANCMRequestPath = new PathString("/iisintegration");
WebHostBuilderIISExtensions.cs (1)
91services.AddSingleton<IStartupFilter>(new IISSetupFilter(pairingToken, new PathString(path), isWebSocketsSupported));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
InMemoryTransportBenchmark.cs (1)
239private static readonly PathString _path = new PathString("/plaintext");
NamedPipesTransportBenchmark.cs (1)
137private static readonly PathString _path = new PathString("/plaintext");
Microsoft.AspNetCore.Session.Tests (12)
SessionTests.cs (12)
176if (context.Request.Path == new PathString("/first")) 225if (context.Request.Path == new PathString("/first")) 231else if (context.Request.Path == new PathString("/second")) 237else if (context.Request.Path == new PathString("/third")) 284if (context.Request.Path == new PathString("/first")) 290else if (context.Request.Path == new PathString("/second")) 296else if (context.Request.Path == new PathString("/third")) 393if (context.Request.Path == new PathString("/first")) 399else if (context.Request.Path == new PathString("/second")) 458if (context.Request.Path == new PathString("/AddDataToSession")) 463else if (context.Request.Path == new PathString("/AccessSessionData")) 468else if (context.Request.Path == new PathString("/DoNotAccessSessionData"))
Microsoft.AspNetCore.StaticFiles (6)
DefaultFilesExtensions.cs (1)
48RequestPath = new PathString(requestPath)
DefaultFilesMiddleware.cs (1)
75context.Request.Path = new PathString(Helpers.GetPathValueWithSlash(context.Request.Path) + defaultFile);
DirectoryBrowserExtensions.cs (1)
48RequestPath = new PathString(requestPath)
FileServerExtensions.cs (1)
68RequestPath = new PathString(requestPath)
Helpers.cs (1)
55path += new PathString("/");
StaticFileExtensions.cs (1)
48RequestPath = new PathString(requestPath)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
StaticFileMiddlewareTests.cs (2)
148RequestPath = new PathString(baseUrl), 190RequestPath = new PathString(baseUrl),
Microsoft.AspNetCore.StaticFiles.Tests (28)
DefaultFilesMiddlewareTests.cs (7)
66RequestPath = new PathString(baseUrl), 105RequestPath = new PathString(""), 145RequestPath = new PathString(""), 214RequestPath = new PathString(baseUrl), 259RequestPath = new PathString(baseUrl), 268Assert.Equal("http://localhost" + baseUrl + new PathString(requestUrl + "/") + queryString, actualURL); 314RequestPath = new PathString(baseUrl),
DirectoryBrowserMiddlewareTests.cs (7)
86RequestPath = new PathString(baseUrl), 123RequestPath = new PathString(""), 160RequestPath = new PathString(""), 219RequestPath = new PathString(baseUrl), 263RequestPath = new PathString(baseUrl), 313RequestPath = new PathString(baseUrl), 361RequestPath = new PathString(baseUrl),
StaticFileContextTest.cs (8)
45var pathString = new PathString("/test"); 47httpContext.Request.Path = new PathString("/test/foo.txt"); 71var pathString = new PathString("/test"); 75httpContext.Request.Path = new PathString("/test/foo.txt"); 100var pathString = new PathString("/test"); 104httpContext.Request.Path = new PathString("/test/bar.txt"); 127var pathString = new PathString("/test"); 129httpContext.Request.Path = new PathString("/test/foo.txt");
StaticFileMiddlewareTests.cs (6)
181RequestPath = new PathString(baseUrl), 216RequestPath = new PathString(baseUrl), 256RequestPath = new PathString(baseUrl), 299RequestPath = new PathString(baseUrl), 474RequestPath = new PathString(baseUrl), 534RequestPath = new PathString(baseUrl),
Microsoft.AspNetCore.TestHost (3)
ClientHandler.cs (1)
40pathBase = new PathString(pathBase.Value[..^1]); // All but the last character
TestServer.cs (1)
224pathBase = new PathString(pathBase.Value[..^1]); // All but the last character.
WebSocketClient.cs (1)
29pathBase = new PathString(pathBase.Value[..^1]); // All but the last character.
Microsoft.AspNetCore.TestHost.Tests (8)
ClientHandlerTests.cs (8)
47var handler = new ClientHandler(new PathString("/A/Path/"), new DummyApplication(context => 73var handler = new ClientHandler(new PathString("/A/Path/"), new InspectingApplication(features => 98var handler = new ClientHandler(new PathString(""), new DummyApplication(context => 113var handler = new ClientHandler(new PathString(""), new DummyApplication(context => 130var handler = new ClientHandler(new PathString(""), new DummyApplication(context => 147var handler = new ClientHandler(new PathString(""), new DummyApplication(context => 163var handler = new ClientHandler(new PathString(""), new DummyApplication(context => 180var handler = new ClientHandler(new PathString(""), new DummyApplication(context =>
SocialSample (4)
Startup.cs (4)
42.AddCookie(o => o.LoginPath = new PathString("/login")) 119o.CallbackPath = new PathString("/signin-github"); 158o.CallbackPath = new PathString("/signin-github-token"); 173o.CallbackPath = new PathString("/signin-identityserver");