public static Notification GigCanceleted(Gig gig) { var notification = new Notification(gig, NotificationType.GigCanceled); return(notification); }
private Notification(Gig gig, NotificationType type) { Gig = gig ?? throw new ArgumentNullException(nameof(gig)); Type = type; DateTime = DateTime.Now; }