//private static void ProcessDoubleClick(TextEdit textEdit) //{ // long startTicks = XlHlp.DisplayInWatchWindow("Begin"); // string selectedCell = (string)Globals.ThisAddIn.Application.ActiveCell.Value.ToString(); // Microsoft.Office.Interop.Excel.Range selectedRange = Globals.ThisAddIn.Application.Selection; // selectedRange.SpecialCells(XlCellType.xlCellTypeVisible).Select(); // Microsoft.Office.Interop.Excel.Range selectedVisibleRange = Globals.ThisAddIn.Application.Selection; // StringBuilder selectedCellsText = new StringBuilder(); // if (selectedRange.Count > 1) // { // foreach (Microsoft.Office.Interop.Excel.Range cell in selectedVisibleRange.Cells) // { // if (selectedCellsText.Length > 0) // { // selectedCellsText.Append($", {cell.Value}"); // } // else // { // selectedCellsText.Append($"{cell.Value}"); // } // } // } // else // { // selectedCellsText.Append($"{selectedRange.Value}"); // } // textEdit.Text = selectedCellsText.ToString(); // XlHlp.DisplayInWatchWindow("End", startTicks); //} private void GetTestPlanInfo(TestPlanRequest request) { long startTicks = Log.EVENT_HANDLER("Enter", Common.PROJECT_NAME); try { RequestHandlers.SpeedUpStart(); char[] splitChars = { ',' }; int testPlanId = 0; Options_AZDO_TFS options = GetOptions(); foreach (string testPlan in request.TestID.Split(splitChars, StringSplitOptions.None)) { if (int.TryParse(testPlan, out testPlanId)) { CreateWS_TM_TestPlanInfo(testPlanId, request.TestSections, options); } AZDOHelper.ProcessLoopDelay(options); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { RequestHandlers.SpeedUpEnd(); } Log.EVENT_HANDLER("Exit", Common.PROJECT_NAME, startTicks); }
public async Task <TestPlanResponse> UpdateTestPlanAsync(string code, int id, TestPlanRequest testPlanRequest) { return(await _api.UpdateTestPlan(_api_token, code, id, testPlanRequest)); }
public async Task <TestPlanResponse> CreateTestPlanAsync(string code, TestPlanRequest testPlanRequest) { return(await _api.CreateNewTestPlan(_api_token, code, testPlanRequest)); }