public ActionResult Index() { try { _LoggingService.Write("HomeController (Index) page access", true); HomeViewModel vmHome = new HomeViewModel(); _PreferenceRepository.LoadBasePreferences(vmHome); vmHome.ScriptListViewModel.List = _ScriptRepository.GetAll(); vmHome.PlaneListViewModel.List = _PlaneRepository.GetAll(); Execution currentExecution = _ExecutionRepository.GetCurrent(); vmHome.ExecutionViewModel.Current = currentExecution; vmHome.ExecutionViewModel.List = _PlaneRepository.GetPlaneList(currentExecution.ExecutionPlane.ToList()); return(View(vmHome)); } catch (Exception ex) { _LoggingService.WriteWithInner(ex, true, "HomeController(Index) error: "); return(new HttpNotFoundResult()); } }
public void GetPlaneList() { Assert.IsTrue(myPlaneRepository.GetPlaneList(myExecutionRepository.GetCurrent().ExecutionPlane.ToList()).Count > 0); }