Пример #1
0
        private Issue Normalize( Issue denormalizedIssue )
        {
            Issue       issue;
            Match       match = _descSplitRegExp.Match( denormalizedIssue.Description );

            issue = denormalizedIssue.Clone();
            issue.ID = ( match.Groups.Count > 1 ? match.Groups[ 1 ].Value : "" );
            issue.Description = denormalizedIssue.Description.Substring( match.Length );
            issue.OriginalIssue = denormalizedIssue;

            return issue;
        }
Пример #2
0
        private Issue Denormalize( Issue normalizedIssue )
        {
            Issue   issue = normalizedIssue.Clone();

            issue.OriginalIssue = normalizedIssue;
            issue.Description = string.Format( "S{0}: {1}",
                                    normalizedIssue.ID, normalizedIssue.Description );

            if( normalizedIssue.OriginalIssue != null )
            {
                issue.ID = normalizedIssue.OriginalIssue.ID;
            }

            return issue;
        }