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