public static void CreateTMSCache(IOutputable output) { output.Write("Cache creation..."); //NameValueCollection parameters = new NameValueCollection { { "status_id", "*" } }; // Task<List<Issue>> issuesListFromRemineTask = CommonTools.GetIssuesFromRedmine(Consts.PROJECT_NAMES.TMS.MACBI.PROBLEMS); List <Issue> issuesListFromRemine = CommonTools.GetIssuesFromRedmine(Consts.PROJECT_NAMES.TMS.MACBI.PROBLEMS); foreach (var issue in issuesListFromRemine) { string subject = issue.Subject; TMSItem itemFromRM = new TMSItem(); itemFromRM.Source = Consts.SRC_RM; itemFromRM.AssignedTo = issue.AssignedTo.TryGetName(); itemFromRM.Desctiption = issue.Description; string[] subjectSplitted = issue.Subject.Split('-'); itemFromRM.TMS = issue.Subject.Split('-')[0].Trim() + "-" + issue.Subject.Split('-')[1].Trim(); itemFromRM.Status = issue.Status.TryGetName(); } output.WriteLine("Cache creation...done!"); }
private static void DisplayFullStats(Dictionary <string, FinalStatItem> finalStatDict) { output.WriteLine("{0,-20} {1,-10} {2,-10}", "Env", "New", "Others"); output.WriteLine(CommonTools.SEPARAT_LINE); foreach (string env in finalStatDict.Keys) { output.WriteLine("{0,-20} {1,-10} {2,-10}", env, CommonTools.DontDisplayZero(finalStatDict[env].New), CommonTools.DontDisplayZero(finalStatDict[env].Others)); } }