Esempio n. 1
0
        public static Notification GigCanceleted(Gig gig)
        {
            var notification = new Notification(gig, NotificationType.GigCanceled);

            return(notification);
        }
Esempio n. 2
0
 private Notification(Gig gig, NotificationType type)
 {
     Gig      = gig ?? throw new ArgumentNullException(nameof(gig));
     Type     = type;
     DateTime = DateTime.Now;
 }