/// <summary> /// The create in test track. /// </summary> /// <param name="connection"> /// The connection. /// </param> /// <returns> /// The <see cref="long"/>. /// </returns> /// <exception cref="Exception"> /// </exception> public long CreateInTestTrack(TtConnection connection) { try { connection.EnableFormattedTextSupport(); this.defect.reportedbylist[0].attachmentlist = this.attachedFiles.ToArray(); return(connection.CreateDefect(this.defect)); } catch (Exception ex) { throw new Exception("Error during item creation : " + ex.Message, ex); } }
/// <summary> /// The create in test track. /// </summary> /// <param name="connection"> /// The connection. /// </param> /// <returns> /// The <see cref="long"/>. /// </returns> /// <exception cref="Exception"> /// </exception> public long CreateInTestTrack(TtConnection connection) { try { connection.EnableFormattedTextSupport(); this.defect.reportedbylist[0].attachmentlist = this.attachedFiles.ToArray(); return connection.CreateDefect(this.defect); } catch (Exception ex) { throw new Exception("Error during item creation : " + ex.Message, ex); } }