public void NavigateTo(UrlPathDetails url) { if (url == null) { throw new ArgumentNullException("url"); } _historyHandler.NavigateTo(url.ToUrlDetails(Optional <QueryString> .Missing)); }
private Link GetLink(string text, UrlPathDetails url, Optional <ClassName> className = new Optional <ClassName>()) { if (string.IsNullOrWhiteSpace(text)) { throw new ArgumentException("Null/blank text specified"); } if (url == null) { throw new ArgumentNullException("url"); } return(new Link( url: url.ToUrlDetails(Optional <QueryString> .Missing), text: new NonBlankTrimmedString(text), caseSensitiveUrlMatching: false, name: Optional <NonBlankTrimmedString> .Missing, target: Optional <NonBlankTrimmedString> .Missing, className: className, ancestorClassName: new ClassName("ancestor"), selectedClassName: new ClassName("selected") )); }