/// <summary>
 /// Resolves the URL.
 /// </summary>
 /// <param name="node">
 /// The node.
 /// </param>
 /// <returns>
 /// The <see cref="string"/>.
 /// </returns>
 protected virtual string ResolveUrl(SiteMapNode node)
 {
     return(NavigationUtilities.ResolveUrl(node));
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="BreadcrumbViewModel" /> class.
        /// </summary>
        /// <param name="list">The list.</param>
        public BreadcrumbViewModel(IEnumerable <SiteMapNode> list)
        {
            var collection = list.Select(n => new BreadcrumbNodeModel(NavigationUtilities.ResolveUrl(n), n.Title));

            this.SiteMapNodes = new ReadOnlyCollection <BreadcrumbNodeModel>(collection.ToList());
        }