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