20 lines
779 B
C#
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);
|
|
}
|
|
}
|