Пример #1
0
        public void GetAllSequences()
        {
            IList <Sequence> project1Sequences = _sequenceService.GetAllSequences(1);

            Assert.AreEqual(2, project1Sequences.Count);

            IList <Sequence> project99Sequences = _sequenceService.GetAllSequences(99);

            Assert.AreEqual(0, project99Sequences.Count);
        }
Пример #2
0
        public ActionResult GetAddScheduledItemDialog(String projectId)
        {
            AddScheduledItemModel addScheduledItemModel = new AddScheduledItemModel();

            addScheduledItemModel.Project   = _projectService.GetProject(projectId);
            addScheduledItemModel.Sequences = _sequenceService.GetAllSequences(addScheduledItemModel.Project.ID);
            addScheduledItemModel.Scripts   = _scriptService.GetAllProjectGhostRunnerScripts(addScheduledItemModel.Project.ID);

            return(View("Partials/AddScheduledItem", addScheduledItemModel));
        }
Пример #3
0
        public ActionResult Index(String projectId, String id)
        {
            if (projectId == null)
            {
                projectId = id;
                id        = null;
            }

            IndexModel indexModel = new IndexModel();

            indexModel.User       = ((User)ViewData["User"]);
            indexModel.Project    = _projectService.GetProject(projectId);
            indexModel.SequenceId = id;
            indexModel.Sequences  = _sequenceService.GetAllSequences(indexModel.Project.ID);

            return(View(indexModel));
        }