public static Notification GigCreated(Gig gig) { return(new Notification(NotificationType.GigCreated, gig)); }
public static Notification GigCancel(Gig gig) { return(new Notification(NotificationType.GigCanceled, gig)); }
private Notification(NotificationType type, Gig gig) { Type = type; Gig = gig ?? throw new ArgumentNullException("Gig"); DateTime = DateTime.Now; }