Example #1
0
 public static DbLinkSprintWithTask ToDbLink(this DbSprint @this, DbTaskItem taskitem, int order)
 {
     return(new DbLinkSprintWithTask
     {
         SprintId = @this.Id,
         TaskItemId = taskitem.Id,
         Sort = order,
     });
 }
Example #2
0
 public static DbLinkProjectWithSprint ToDbLink(this DbProject @this, DbSprint sprint, int order)
 {
     return(new DbLinkProjectWithSprint
     {
         ProjectId = @this.Id,
         SprintId = sprint.Id,
         Sort = order,
     });
 }
Example #3
0
 public static ISprint ToModel(this DbSprint @this, IEnumerable <ITaskItem> taskItems)
 {
     return(new Sprint
     {
         Id = @this.Id,
         Name = @this.Name,
         Left = @this.Left,
         Right = @this.Right,
         Tasks = taskItems.ToArray(),
     });
 }
Example #4
0
 public static DbLinkProjectWithSprint ToDbLink(this DbProject @this, DbSprint sprint, int order)
 {
     return new DbLinkProjectWithSprint
     {
         ProjectId = @this.Id,
         SprintId = sprint.Id,
         Sort = order,
     };
 }
Example #5
0
 public static ISprint BuildModel(this DbSprint @this, IEnumerable <DbTaskItem> taskItems)
 {
     return
         (@this.ToModel(taskItems.Select(x => x.ToModel()).ToArray()));
 }