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