コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }