Exemplo n.º 1
0
 public static Notification GigCanceled(Gig gig) => new Notification(NotificationType.GigCanceled, gig);
Exemplo n.º 2
0
        //private NotificationType gigCanceled;

        private Notification(NotificationType type, Gig gig)
        {
            Gig       = gig ?? throw new ArgumentException("Gig cannot be null");
            this.Type = type;
            DateTime  = DateTime.Now;
        }