feat(discord): register health check hosted service in Program.cs

Issue #32
This commit is contained in:
2026-05-21 14:20:40 +03:00
parent f1d8f56fec
commit feb3e08b63
2 changed files with 10 additions and 0 deletions
@@ -87,6 +87,14 @@ public sealed class DiscordStartupTests
Assert.Contains("HandleRsvpHandler", program);
}
[Fact]
public void Program_ShouldRegisterDiscordHealthCheckHostedService()
{
var program = ReadProgram();
Assert.Contains("DiscordHealthCheckHostedService", program);
Assert.Contains("AddHostedService<DiscordHealthCheckHostedService>", program);
}
private static string ReadProgram()
{
var repoRoot = GetRepoRoot();