public ContentNavigationItemBuilderTests()
        {
            var viewContext = TestHelper.CreateViewContext();

            this.item    = new ContentNavigationItemTestDouble();
            this.builder = new ContentNavigationItemBuilderTestDouble(item, viewContext);
        }
예제 #2
0
 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);
 }