public ProjectViewModel(Project project)
     : base()
 {
     Id = project.Id;
     Name = project.Name;
     Items = new List<object>();
 }
Exemple #2
0
        private RunResult Run(Project project) {
            var runInfo = GetRunInfo(project);

            return new ProjectResult {
                Type = Enums.RunType.PROJECT,
                Status = Enums.RunStatus.SUCCESS
            };
        }
        protected override void BeforeNavigation(NavigationContext context)
        {
            int chosenId = (int)context.Parameters["id"];

            project = projectsService.Get(chosenId);
            Id = project.Id;
            ParentId = Id;
            TopmostParentId = Id;
            Name = project.Name;
            importance = 1;
            Identity = string.Format("{0}.{1}.{2}.{3}", Importance, Id, ParentId, TopmostParentId);
        }
Exemple #4
0
        private RunInfo GetRunInfo(Project project) {
            var scenarios = project.Scenarios;
            var tests = from scenario in scenarios
                        from test in scenario.Tests
                        select test;
            var steps = from test in tests
                        from step in test.Steps
                        select step;

            return new RunInfo {
                Scenarios = scenarios,
                Tests = tests,
                Steps = steps
            };
        }
Exemple #5
0
 private void Pause(Project project) {
     var runInfo = GetRunInfo(project);
 }
Exemple #6
0
 private void Stop(Project project) {
     var runInfo = GetRunInfo(project);
 }
Exemple #7
0
 public async Task PauseAsync(Project project) {
     
 }
Exemple #8
0
 public async Task StopAsync(Project project) {
     
 }
Exemple #9
0
 public async Task<RunResult> RunAsync(Project project) {
     return await Task.Run(() => {
         return Run(project);
     });
 }
Exemple #10
0
 private void _pause(Project project) {
     var runInfo = _getRunInfo(project);
 }
Exemple #11
0
 private void _stop(Project project) {
     var runInfo = _getRunInfo(project);
 }
Exemple #12
0
 public bool Add(Project obj)
 {
     return repository.Add(obj);
 }