/// <summary> /// From DI container => see ServiceConfigurator.cs /// </summary> /// <param name="modelBuilder"></param> /// <param name="renderingContext"></param> public NavigationController( NavigationModelBuilder modelBuilder, RenderingContext renderingContext) { _modelBuilder = modelBuilder; _renderingContext = renderingContext; }
public void ReturnAModel() { var item = new TestItem("TestItem"); var navigatorBuilder = new NavigationModelBuilder(); var model = navigatorBuilder.CreateNavigatorMenu(item, item); model.Should().NotBeNull(); }
public void ReturnsAModel() { var item = new TestItem("test"); var modelBuilder = new NavigationModelBuilder(); //var model = modelBuilder.CreateNavigationMenu(item, item); //Assert.IsNotNull(model); }
public void ReturnsAModel() { IItem item = new TestItem("test"); NavigationModelBuilder navModelBuilder = new NavigationModelBuilder(); NavigationMenu model = navModelBuilder.CreateNavigationMenu(item, item); Assert.AreNotEqual(model, null); }
public void ReturnsAModel() { NavigationModelBuilder nmb = new NavigationModelBuilder(); TestItem _item = new TestItem("test"); var result = nmb.CreateNavigationMenu(_item, _item); Assert.IsNotNull(result); }
// GET: Navigation public NavigationController(NavigationModelBuilder modelBuilder, RenderingContext context) { _builder = modelBuilder; _context = context; }
public NavigationController(RenderingContext context, NavigationModelBuilder modelBuilder) { _currentContext = context; _modelBuilder = modelBuilder; }