feat(notification-outbox): add NotificationType and NotificationStatus enums
This commit is contained in:
21
tests/ScadaLink.Commons.Tests/Types/NotificationEnumTests.cs
Normal file
21
tests/ScadaLink.Commons.Tests/Types/NotificationEnumTests.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using ScadaLink.Commons.Types.Enums;
|
||||
|
||||
namespace ScadaLink.Commons.Tests.Types;
|
||||
|
||||
public class NotificationEnumTests
|
||||
{
|
||||
[Fact]
|
||||
public void NotificationStatus_HasExactlyTheCentralStates()
|
||||
{
|
||||
var names = Enum.GetNames<NotificationStatus>();
|
||||
Assert.Equal(
|
||||
new[] { "Pending", "Retrying", "Delivered", "Parked", "Discarded" },
|
||||
names);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NotificationType_HasEmail()
|
||||
{
|
||||
Assert.True(Enum.IsDefined(NotificationType.Email));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user