test(notification-outbox): assert NotNull in SourceScript negative test
This commit is contained in:
@@ -142,6 +142,7 @@ public class NotifyHelperTests : TestKit, IAsyncLifetime, IDisposable
|
||||
var notificationId = await notify.To("Operators").Send("Pump alarm", "Pump 3 tripped");
|
||||
|
||||
var buffered = await _saf.GetMessageByIdAsync(notificationId);
|
||||
Assert.NotNull(buffered);
|
||||
var payload = JsonSerializer.Deserialize<NotificationSubmit>(buffered!.PayloadJson);
|
||||
Assert.Null(payload!.SourceScript);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user