Beispiel #1
0
        private Notification(SafetyNews safetyNews, NotificationType notificationType)
        {
            if (safetyNews == null)
            {
                throw new ArgumentNullException();
            }

            DateTime   = DateTime.Now;
            SafetyNews = safetyNews;
            Type       = notificationType;
        }
Beispiel #2
0
 public static Notification NewSafetyNews(SafetyNews safetyNews)
 {
     return(new Notification(safetyNews, NotificationType.SafetyNewsPosted));
 }