๐
Declarative Syntax
Write readable tests your whole team can understand.
Run HTTP requests through your real application in memory and check the response with a declarative API. Works with xUnit, NUnit and TUnit.
await using var host = await AlbaHost.For<Program>()
.WithConfiguration("ConnectionStrings:Db", "Database=test");
await host.Scenario(_ =>
{
_.Post.Json(new Order("A-1", 2)).ToUrl("/orders");
_.StatusCodeShouldBe(201);
_.JsonPath("$.sku").ShouldBe("A-1");
});