100 references to Map
CookiePolicySample (2)
ExceptionHandlerSample (2)
HealthChecksSample (2)
IIS.Tests (1)
JwtBearerSample (1)
Microsoft.AspNetCore.Authentication.Test (23)
CookieTests.cs (10)
1243app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" })));
1355app.Map("/notlogin", signoutApp => signoutApp.Run(context => context.SignInAsync("Cookies",
1378app.Map("/login", signoutApp => signoutApp.Run(context => context.SignInAsync("Cookies", new ClaimsPrincipal(new ClaimsIdentity("whatever")))));
1404app.Map("/notlogout", signoutApp => signoutApp.Run(context => context.SignOutAsync("Cookies")));
1426app.Map("/logout", signoutApp => signoutApp.Run(context => context.SignOutAsync("Cookies")));
1452app.Map("/forbid", signoutApp => signoutApp.Run(context => context.ForbidAsync("Cookies")));
1474app.Map("/base", map =>
1477map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" })));
1617app.Map("/base", map =>
1620map.Map("/forbid", signoutApp => signoutApp.Run(context => context.ForbidAsync("Cookies")));
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (22)
ExceptionHandlerTest.cs (14)
39app.Map("/handle-errors", (innerAppBuilder) =>
95app.Map("/handle-errors", (innerAppBuilder) =>
156app.Map("/handle-errors", (innerAppBuilder) =>
212app.Map("/handle-errors", (innerAppBuilder) =>
268app.Map("/handle-errors", (innerAppBuilder) =>
339app.Map("/handle-errors", (innerAppBuilder) =>
408app.Map("/handle-errors", (innerAppBuilder) =>
470app.Map("/handle-errors", (innerAppBuilder) =>
576app.Map("/handle-errors", (innerAppBuilder) =>
584app.Map("/throw", (innerAppBuilder) =>
633app.Map("/throw", (innerAppBuilder) =>
677app.Map("/throw", innerAppBuilder =>
716app.Map("/throw", innerAppBuilder =>
754app.Map("/throw", (innerAppBuilder) =>
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
MapPathMiddlewareTests.cs (10)
41Assert.Throws<ArgumentNullException>(() => builder.Map("/foo", configuration: null!));
88builder.Map(matchPath, subBuilder => subBuilder.Run(Success));
131Assert.Throws<ArgumentException>(() => new ApplicationBuilder(serviceProvider: null!).Map(matchPath, map => { }).Build());
146builder.Map(matchPath, UseNotImplemented);
168builder.Map(matchPath, UseNotImplemented);
182builder.Map("/route1", map =>
184map.Map("/subroute1", UseSuccess);
187builder.Map("/route2/subroute2", UseSuccess);
223mockWebApplication.Map("/foo", app => { });
233mockWebApplication.Map("/foo", (IApplicationBuilder app) => { });
Microsoft.AspNetCore.Routing.Tests (2)
MiddlewareAnalysisSample (2)
Mvc.RoutingWebSite (7)
RequestDecompressionSample (1)
ResponseCompressionSample (2)
RoutingWebSite (4)
ServerComparison.TestSites (8)
SessionSample (1)
SocialSample (4)
StaticFilesAuth (2)
StatusCodePagesSample (1)