public void ShouldCombineSchemeAndAuthority() { var helper = new UrlFormattingHelper(); var baseUrl = helper.GetBaseUrl(new Uri("http://localhost:1234/soup")); baseUrl.Should().Be("http://localhost:1234"); }
public virtual string GetBaseUrl() { var urlFormattingHelper = new UrlFormattingHelper(); return urlFormattingHelper.GetBaseUrl(System.Web.HttpContext.Current.Request.Url); }
public virtual string GetBaseUrl() { var urlFormattingHelper = new UrlFormattingHelper(); return(urlFormattingHelper.GetBaseUrl(System.Web.HttpContext.Current.Request.Url)); }