Example #1
0
 private Notification(NotificationType type, Gig gig)
 {
     Type     = type;
     Gig      = gig ?? throw new ArgumentNullException("gig");
     DateTime = DateTime.Now;
 }
Example #2
0
 public static Notification GigCanceled(Gig gig) => new Notification(NotificationType.GigCanceled, gig);