feat(notification-outbox): add dispatcher loop to NotificationOutboxActor

This commit is contained in:
Joseph Doherty
2026-05-19 01:42:28 -04:00
parent 4dc9f9e159
commit c41f43c87f
4 changed files with 489 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ using ScadaLink.Commons.Entities.Notifications;
using ScadaLink.Commons.Interfaces.Repositories;
using ScadaLink.Commons.Messages.Notification;
using ScadaLink.Commons.Types.Enums;
using ScadaLink.NotificationOutbox.Delivery;
namespace ScadaLink.NotificationOutbox.Tests;
@@ -33,7 +34,8 @@ public class NotificationOutboxActorIngestTests : TestKit
return Sys.ActorOf(Props.Create(() => new NotificationOutboxActor(
BuildServiceProvider(),
new NotificationOutboxOptions(),
NullLogger<NotificationOutboxActor>.Instance)));
NullLogger<NotificationOutboxActor>.Instance,
new Dictionary<NotificationType, INotificationDeliveryAdapter>())));
}
private static NotificationSubmit MakeSubmit(string? notificationId = null)