public override string GetItemUrl(Item item, UrlOptions options) { var current = this.CurrentProvider; return current != null ? current.GetItemUrl(item, options) : base.GetItemUrl(item, options); }
public void GetItemUrlOptionsCallsBaseProviderIfCurrentNotSet(SwitchingLinkProvider sut, Item item, UrlOptions options) { using (new Db()) { sut.GetItemUrl(item, options).Should().NotBeNull(); } }