Add comprehensive backend test suite and helper access

This commit is contained in:
2026-02-05 18:03:50 +01:00
parent 330d87b432
commit 912da11809
11 changed files with 591 additions and 4 deletions

View File

@@ -43,4 +43,11 @@ internal static class TestClientExtensions
var json = await response.Content.ReadFromJsonAsync<JsonElement>();
return json.GetProperty("id").GetInt32();
}
public static async Task<Guid> GetProfileIdAsync(this HttpClient client)
{
var me = await client.GetFromJsonAsync<JsonElement>("/api/me");
return Guid.Parse(me.GetProperty("id").GetString()!);
}
}