using FluentAssertions;

public class AlertCreationGuardTests
{
    [Fact]
    public void CannotCreateNewSepsisWarning()
    {
        var act = () => AlertCreationGuard.EnsureAllowed(AlertTypeExtensions.FromDbString("SEPSIS_WARNING"));
        act.Should().Throw<InvalidOperationException>()
            .WithMessage("*deprecated*");
    }

    [Fact]
    public void AllowsSofaSepsis()
    {
        var act = () => AlertCreationGuard.EnsureAllowed(AlertType.SofaSepsis);
        act.Should().NotThrow();
    }
}
