Beispiel #1
0
 private Notification(NotificationType type, Shelf shelf, Item item)
 {
     Shelf    = shelf ?? throw new ArgumentNullException(nameof(shelf));
     Item     = item;
     Type     = type;
     DateTime = DateTime.UtcNow;
 }
Beispiel #2
0
 public static Notification ShelfCreated(Shelf shelf)
 {
     return(new Notification(NotificationType.ShelfCreated, shelf, null));
 }