public void GetItemUrlOptionsCallsBaseProviderIfCurrentNotSet(SwitchingLinkProvider sut, Item item, UrlOptions options) { using (new Db()) { sut.GetItemUrl(item, options).Should().NotBeNull(); } }
public void GetItemUrlCallsCurrentProvider(SwitchingLinkProvider sut, [Substitute] LinkProvider current, Item item, UrlOptions options) { using (new Switcher<LinkProvider>(current)) { sut.GetItemUrl(item, options).Should().BeSameAs(current.GetItemUrl(item, options)); } }