public void Enrich(IHalResponseBuilder halResponseBuilder, NotificationAggregate notification) { if (halResponseBuilder == null) { throw new ArgumentNullException(nameof(halResponseBuilder)); } if (notification == null) { throw new ArgumentNullException(nameof(notification)); } halResponseBuilder.AddEmbedded(e => e.AddObject(_responseBuilder.GetNotification(notification), (l) => { l.AddSelf(Constants.RouteNames.Notifications + "/" + notification.Id); })); }