Sitecore.FakeDb.Links.SwitchingLinkProvider.GetItemUrl C# (CSharp) Method

GetItemUrl() public method

public GetItemUrl ( System.Item item, UrlOptions options ) : string
item System.Item
options UrlOptions
return string
    public override string GetItemUrl(Item item, UrlOptions options)
    {
      var current = this.CurrentProvider;
      return current != null ? current.GetItemUrl(item, options) : base.GetItemUrl(item, options);
    }

Usage Example

 public void GetItemUrlOptionsCallsBaseProviderIfCurrentNotSet(SwitchingLinkProvider sut, Item item, UrlOptions options)
 {
   using (new Db())
   {
     sut.GetItemUrl(item, options).Should().NotBeNull();
   }
 }
All Usage Examples Of Sitecore.FakeDb.Links.SwitchingLinkProvider::GetItemUrl