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