Пример #1
0
 /// <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;
 }
Пример #2
0
        public void ReturnAModel()
        {
            var item             = new TestItem("TestItem");
            var navigatorBuilder = new NavigationModelBuilder();
            var model            = navigatorBuilder.CreateNavigatorMenu(item, item);

            model.Should().NotBeNull();
        }
Пример #3
0
        public void ReturnsAModel()
        {
            var item         = new TestItem("test");
            var modelBuilder = new NavigationModelBuilder();
            //var model = modelBuilder.CreateNavigationMenu(item, item);

            //Assert.IsNotNull(model);
        }
Пример #4
0
        public void ReturnsAModel()
        {
            IItem item = new TestItem("test");
            NavigationModelBuilder navModelBuilder = new NavigationModelBuilder();
            NavigationMenu         model           = navModelBuilder.CreateNavigationMenu(item, item);

            Assert.AreNotEqual(model, null);
        }
Пример #5
0
        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;
 }
Пример #7
0
 public NavigationController(RenderingContext context, NavigationModelBuilder modelBuilder)
 {
     _currentContext = context;
     _modelBuilder   = modelBuilder;
 }