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