feat(notification-outbox): add NotificationOutboxOptions and delivery adapter abstraction

This commit is contained in:
Joseph Doherty
2026-05-19 01:20:49 -04:00
parent fb589bf1da
commit 8d52890245
5 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
namespace ScadaLink.NotificationOutbox.Tests;
public class NotificationOutboxOptionsTests
{
[Fact]
public void Defaults_AreExpectedValues()
{
var options = new NotificationOutboxOptions();
Assert.Equal(TimeSpan.FromSeconds(10), options.DispatchInterval);
Assert.Equal(100, options.DispatchBatchSize);
Assert.Equal(TimeSpan.FromMinutes(10), options.StuckAgeThreshold);
Assert.Equal(TimeSpan.FromDays(365), options.TerminalRetention);
Assert.Equal(TimeSpan.FromDays(1), options.PurgeInterval);
Assert.Equal(TimeSpan.FromMinutes(1), options.DeliveredKpiWindow);
}
}