Files
MyAiConfiguration/scripts/benchmarks/tasks/16-aspnet-unknown-customer/repo/src/Crm/AppHost.cs
T
Julian lechnerandClaude Opus 5.5 f43a2df14b test(benchmarks): add C#/ASP.NET and TypeScript tasks
Six tasks with hidden checks: ASP.NET validation and 404 handling, C#
cancellation, and TypeScript overlap, deep merge, and debounce fixes, checked
with dotnet run and node --test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 13:59:12 +02:00

17 lines
484 B
C#

namespace Crm;
public static class AppHost
{
// Integration tests start the application through Build.
public static WebApplication Build(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
var customers = new Dictionary<int, Customer> { [1] = new(1, "Ada") };
app.MapGet("/customers/{id:int}", (int id) => customers[id]);
return app;
}
}
public record Customer(int Id, string Name);