private IDictionary <string, object> GenerateLinks( ILinkGenerator <TInput> generator, TInput source) { var links = generator.GenerateLinks(this.urlHelper, source); return(NamedLink.BuildLinks(links)); }
public static NamedLink ShouldBeFilled(this NamedLink link) { link.ShouldNotBeNull(); link.href.ShouldNotBeNullOrEmpty(); link.name.ShouldNotBeNullOrEmpty(); return(link); }
private void GenerateLinks() { var links = this.linkGenerator.GenerateLinks(this.paginationMetaInfoStorage.Value); this.restEntityCollection.Links = NamedLink.BuildLinks(links); }