Exemple #1
0
        public string[] GetNamespaces()
        {
            var controller = new IndexController(modulesStorage);
            var model      = controller.Get("");

            return(model.RootNamespaces.ToArray());
        }
Exemple #2
0
        public ModuleModel[] GetModules(string baseNamespace)
        {
            var controller = new IndexController(modulesStorage);
            var model      = controller.Get(baseNamespace);

            return(model.Modules.ToArray());
        }
Exemple #3
0
        public void Get_ShouldReturnContentResult()
        {
            //Arrange
            Mock <ILogger <IndexController> > loggerMock = new Mock <ILogger <IndexController> >();
            IndexController indexController = new IndexController(loggerMock.Object);

            //Act
            var result = indexController.Get();

            //Assert
            Assert.IsType <ContentResult>(result);
        }
Exemple #4
0
 public void TestMethodGet()
 {
     Assert.AreEqual(Index.Get(100, 5), "105,10");
 }