public ProjectViewModel(Project project) : base() { Id = project.Id; Name = project.Name; Items = new List<object>(); }
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); }
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 }; }
private void Pause(Project project) { var runInfo = GetRunInfo(project); }
private void Stop(Project project) { var runInfo = GetRunInfo(project); }
public async Task PauseAsync(Project project) { }
public async Task StopAsync(Project project) { }
public async Task<RunResult> RunAsync(Project project) { return await Task.Run(() => { return Run(project); }); }
private void _pause(Project project) { var runInfo = _getRunInfo(project); }
private void _stop(Project project) { var runInfo = _getRunInfo(project); }
public bool Add(Project obj) { return repository.Add(obj); }