7 references to GetMapActionString
Microsoft.AspNetCore.Http.Extensions.Tests (7)
RequestDelegateGenerator\CompileTimeCreationTests.cs (5)
54
var source =
GetMapActionString
("""app.MapGet("/", (string name) => "Hello {name}!");app.MapGet("/bye", (string name) => "Bye {name}!");""");
55
var otherSource =
GetMapActionString
("""app.MapGet("/", (string name) => "Hello {name}!");""", "OtherTestMapActions");
80
var source =
GetMapActionString
("""app.MapGet("/", (string name) => "Hello {name}!");""");
81
var otherSource =
GetMapActionString
("""app.MapGet("/", (int age) => "Hello {age}!");""", "OtherTestMapActions");
164
var source =
GetMapActionString
("""app.MapGet("/", () => "Hello world!");""");
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
68
var syntaxTree = CSharpSyntaxTree.ParseText(
GetMapActionString
(updatedSource), path: $"TestMapActions.cs", options: ParseOptions);
304
var source =
GetMapActionString
(sources);