/// <summary>
        /// Initializes a new instance of the <see cref="TestTrackItem"/> class.
        /// </summary>
        /// <param name="SoapRow">
        /// The soap row.
        /// </param>
        public TestTrackItem(CRecordRowSoap SoapRow)
        {
            if (SoapRow.row[0].value == null)
            {
                this._RecordId = 0;
            }
            else
            {
                this._RecordId = Convert.ToInt64(SoapRow.row[0].value);
            }

            if (SoapRow.row[1].value == null)
            {
                this.Number = 0;
            }
            else
            {
                this.Number = Convert.ToInt64(SoapRow.row[1].value);
            }

            this._Priority = SoapToTestTrack.GetPriorityFromString(SoapRow.row[2].value);
            this._Status = SoapToTestTrack.GetDefectStatusFromString(SoapRow.row[3].value);

            if (SoapRow.row[5].value == null)
            {
                this._Origin = string.Empty;
            }
            else
            {
                this._Origin = SoapRow.row[5].value;
            }

            if (SoapRow.row[6].value == null)
            {
                this._Team = string.Empty;
            }
            else
            {
                this._Team = SoapRow.row[6].value;
            }

            if (SoapRow.row[7].value == null)
            {
                this._DateEntered = string.Empty;
            }
            else
            {
                this._DateEntered = SoapRow.row[7].value;
            }

            if (SoapRow.row[8].value == null)
            {
                this._DateModified = string.Empty;
            }
            else
            {
                this._DateModified = SoapRow.row[8].value;
            }

            if (SoapRow.row[9].value == null)
            {
                this._DateAssigned = string.Empty;
            }
            else
            {
                this._DateAssigned = SoapRow.row[9].value;
            }

            if (SoapRow.row[10].value == null)
            {
                this._Summary = string.Empty;
            }
            else
            {
                this._Summary = SoapRow.row[10].value;
            }

            if (SoapRow.row[11].value == null)
            {
                this._Type = string.Empty;
            }
            else
            {
                this._Type = SoapRow.row[11].value;
            }

            this._ReleaseBlocker = SoapToTestTrack.GetReleaseBlockerFromString(SoapRow.row[12].value);

            if (SoapRow.row[13].value == null)
            {
                this._Segment = string.Empty;
            }
            else
            {
                this._Segment = SoapRow.row[13].value;
            }
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TestTrackItem"/> class.
        /// </summary>
        /// <param name="SoapRow">
        /// The soap row.
        /// </param>
        public TestTrackItem(CRecordRowSoap SoapRow)
        {
            if (SoapRow.row[0].value == null)
            {
                this._RecordId = 0;
            }
            else
            {
                this._RecordId = Convert.ToInt64(SoapRow.row[0].value);
            }

            if (SoapRow.row[1].value == null)
            {
                this.Number = 0;
            }
            else
            {
                this.Number = Convert.ToInt64(SoapRow.row[1].value);
            }

            this._Priority = SoapToTestTrack.GetPriorityFromString(SoapRow.row[2].value);
            this._Status   = SoapToTestTrack.GetDefectStatusFromString(SoapRow.row[3].value);

            if (SoapRow.row[5].value == null)
            {
                this._Origin = string.Empty;
            }
            else
            {
                this._Origin = SoapRow.row[5].value;
            }

            if (SoapRow.row[6].value == null)
            {
                this._Team = string.Empty;
            }
            else
            {
                this._Team = SoapRow.row[6].value;
            }

            if (SoapRow.row[7].value == null)
            {
                this._DateEntered = string.Empty;
            }
            else
            {
                this._DateEntered = SoapRow.row[7].value;
            }

            if (SoapRow.row[8].value == null)
            {
                this._DateModified = string.Empty;
            }
            else
            {
                this._DateModified = SoapRow.row[8].value;
            }

            if (SoapRow.row[9].value == null)
            {
                this._DateAssigned = string.Empty;
            }
            else
            {
                this._DateAssigned = SoapRow.row[9].value;
            }

            if (SoapRow.row[10].value == null)
            {
                this._Summary = string.Empty;
            }
            else
            {
                this._Summary = SoapRow.row[10].value;
            }

            if (SoapRow.row[11].value == null)
            {
                this._Type = string.Empty;
            }
            else
            {
                this._Type = SoapRow.row[11].value;
            }

            this._ReleaseBlocker = SoapToTestTrack.GetReleaseBlockerFromString(SoapRow.row[12].value);

            if (SoapRow.row[13].value == null)
            {
                this._Segment = string.Empty;
            }
            else
            {
                this._Segment = SoapRow.row[13].value;
            }
        }