/// <summary> /// Creates a <see cref="NotificationCollection"/> that contains the entire list from <paramref name="notifications"/> /// </summary> /// <param name="notifications">The notifications.</param> /// <returns></returns> public static NotificationCollection Create(IList <Notification> notifications) { NotificationCollection notificationCollection = CreateEmpty(); notificationCollection.AddMessage(notifications); return(notificationCollection); }
/// <summary> /// Adds one <see cref="NotificationCollection"/> to another <see cref="NotificationCollection"/> /// </summary> /// <param name="left">The first <see cref="NotificationCollection"/></param> /// <param name="right">The second <see cref="NotificationCollection"/></param> /// <returns></returns> public static NotificationCollection Add(NotificationCollection left, NotificationCollection right) { return(left + right); }