public ContentNavigationItemBuilderTests() { var viewContext = TestHelper.CreateViewContext(); this.item = new ContentNavigationItemTestDouble(); this.builder = new ContentNavigationItemBuilderTestDouble(item, viewContext); }
public NavigationItemContainerExtensionsTests() { contentItem = new ContentNavigationItemTestDouble(); component = new ContentNavigationItemComponentTestDouble(); component.Name = "Component"; component.Items.Add(contentItem); component.UrlGeneratorMock.Setup <string>(g => g.Generate(It.IsAny <RequestContext>(), It.IsAny <INavigatable>())).Returns(() => contentItem.Url); }