public static IQueryable <ISprint> GetSprintList() { return(SprintService.SprintFetchInfoList() .Cast <ISprint>() .OrderBy(row => row.ProjectName) .ThenByDescending(row => row.EstimatedCompletedDate) .AsQueryable()); }
public void Sprint_Fetch_List() { var sprint = SprintService.SprintNew(); var project = BusinessHelper.CreateProject(); sprint.ProjectId = project.ProjectId; sprint.Name = DataHelper.RandomString(20); sprint = SprintService.SprintSave(sprint); sprint.ProjectId = project.ProjectId; sprint.Name = DataHelper.RandomString(20); SprintService.SprintSave(sprint); var sprints = SprintService.SprintFetchInfoList(); Assert.IsTrue(sprints.Count > 1, "Sprints should be greater than one"); }
public void Sprint_Fetch_List() { Exception exception = null; BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleReview.UserName, SprintTestsWithRoleReview.UserPassword); BusinessHelper.CreateSprintAndLogon( SprintTestsWithRoleReview.UserName, SprintTestsWithRoleReview.UserPassword); try { SprintService.SprintFetchInfoList(); } catch (Exception ex) { exception = ex; } Assert.IsTrue(exception == null, "Exception should be null"); }
public ProjectFormModel MapToModel(Project project, ProjectFormModel model, bool ignoreBrokenRules) { Csla.Data.DataMapper.Map(project, model, true); model.Tab = "Project"; model.IsNew = project.IsNew; model.IsValid = project.IsValid; if (!project.IsNew) { model.Tasks = TaskService.TaskFetchInfoList(project); model.Sprints = SprintService.SprintFetchInfoList(project); model.Statuses = DataHelper.GetStatusList(); model.Categories = DataHelper.GetCategoryList(); model.NoteListModel = new NoteListModel { Source = project, Notes = NoteService.NoteFetchInfoList(project).AsQueryable() }; model.AttachmentListModel = new AttachmentListModel { Source = project, Attachments = AttachmentService.AttachmentFetchInfoList(project).AsQueryable() }; } if (!ignoreBrokenRules) { foreach (var brokenRule in project.BrokenRulesCollection) { this.ModelState.AddModelError(string.Empty, brokenRule.Description); } } return(model); }