public string[] GetNamespaces() { var controller = new IndexController(modulesStorage); var model = controller.Get(""); return(model.RootNamespaces.ToArray()); }
public ModuleModel[] GetModules(string baseNamespace) { var controller = new IndexController(modulesStorage); var model = controller.Get(baseNamespace); return(model.Modules.ToArray()); }
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); }
public void TestMethodGet() { Assert.AreEqual(Index.Get(100, 5), "105,10"); }