Files
components/LiteCharms.Features.Tests/NotificationsFeatureTests.cs
T
2026-05-13 20:06:24 +02:00

20 lines
779 B
C#

using LiteCharms.Features.Notifications.Commands;
namespace LiteCharms.Features.Tests;
public class NotificationsFeatureTests(CommonFixture fixture) : IClassFixture<CommonFixture>
{
[Fact]
public async Task CreateNotificationCommand_ShouldSucceed()
{
var command = CreateNotification.Create(Models.NotificationDirection.Outgoing, "UnitTest", "khwezi@mngoma.co.za",
"CreateNotificationCommand_ShouldSucceed Test", "Test Message", Models.NotificationPlatforms.Email, Models.Priorities.Medium,
"Khngisa Shop - Test", "shop@litecharms.co.za", Guid.NewGuid().ToString(), Models.CorrelationIdTypes.None,
true, false);
var result = await fixture.Mediator.Send(command);
Assert.True(result.IsSuccess);
}
}