public static AggregateAndNotifications <TAggregate> OrNotifications <TAggregate>(this TAggregate aggregate, NotificationList notifications) where TAggregate : IAggregateRoot { return(new AggregateAndNotifications <TAggregate> { Aggregate = aggregate, Notifications = notifications }); }
public static NotificationList AddNotificationsTo <TAggregate>( this AggregateResult <TAggregate> sourceResult, NotificationList targetList) where TAggregate : IAggregateRoot { return(targetList.AddNotifications(sourceResult.Notifications)); }