private static string CreateTaskComment(ExportItemViewModelApi modelApi) { string comment = $"Parent - [{modelApi.ParentTFSID}][{modelApi.ParentTFSTitle}] \r\n" + $"Task - [{modelApi.TFSID}][{modelApi.TFSTitle}] \r\n" + $"Comment - [{modelApi.Comment}] \r\n"; return(comment); }
public WorkItem(ExportItemViewModelApi trackedTimeRow) { if (trackedTimeRow == null) { throw new ArgumentNullException(nameof(trackedTimeRow)); } Id = trackedTimeRow.TFSID.Value; Title = trackedTimeRow.TFSTitle; WorkItemType = trackedTimeRow.WorkItemType; TeamProject = trackedTimeRow.TeamProject; ParentId = trackedTimeRow.ParentTFSID; }