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