test(notification-outbox): cover all Notification constructor null guards
This commit is contained in:
@@ -22,12 +22,12 @@ public class NotificationEntityTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Constructor_NullListName_Throws()
|
||||
=> Assert.Throws<ArgumentNullException>(
|
||||
() => new Notification("id", NotificationType.Email, null!, "s", "b", "SiteA"));
|
||||
|
||||
[Fact]
|
||||
public void Constructor_NullNotificationId_Throws()
|
||||
=> Assert.Throws<ArgumentNullException>(
|
||||
() => new Notification(null!, NotificationType.Email, "list", "s", "b", "SiteA"));
|
||||
public void Constructor_NullArguments_Throw()
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(() => new Notification(null!, NotificationType.Email, "list", "s", "b", "SiteA"));
|
||||
Assert.Throws<ArgumentNullException>(() => new Notification("id", NotificationType.Email, null!, "s", "b", "SiteA"));
|
||||
Assert.Throws<ArgumentNullException>(() => new Notification("id", NotificationType.Email, "list", null!, "b", "SiteA"));
|
||||
Assert.Throws<ArgumentNullException>(() => new Notification("id", NotificationType.Email, "list", "s", null!, "SiteA"));
|
||||
Assert.Throws<ArgumentNullException>(() => new Notification("id", NotificationType.Email, "list", "s", "b", null!));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user