Files
vigilcare-clinical/VigilCareClinicalAPI.Tests/AlertCreationGuardTests.cs
T

20 lines
516 B
C#

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();
}
}