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

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