Ejemplo n.º 1
0
        private IDictionary <string, object> GenerateLinks(
            ILinkGenerator <TInput> generator, TInput source)
        {
            var links = generator.GenerateLinks(this.urlHelper, source);

            return(NamedLink.BuildLinks(links));
        }
Ejemplo n.º 2
0
        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);
        }