Ejemplo n.º 1
0
 private void OnCloseIssue( ResolverSourceType sourceType, Issue issue )
 {
     _actions.Add( new CloseIssueSyncAction( _sourceFromType( sourceType ), issue ) );
 }
Ejemplo n.º 2
0
        private void OnAddIssue( ResolverSourceType sourceType, Issue issue )
        {
            Sources.ISource     destination = _sourceFromType( sourceType );
            Sources.ISource     source = _sourceFromType( sourceType.Other() );

            _actions.Add( new AddIssueSyncAction( destination, issue ) );

            if( destination.Settings.IsPrimary )
            {
                _actions.Add( new UpdateIssueSyncAction( source, issue, IssueFieldId.ID ) );
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializing constructor
 /// </summary>
 /// <param name="id">Identifier of the issue that needs to be retrieved</param>
 /// <param name="source">Identifies the source fro which the issue is to be retrieved</param>
 public ResolverNeedItemLookupEventArgs( string              id,
                                         ResolverSourceType  source )
 {
     this.ID = id;
     this.Source = source;
 }
Ejemplo n.º 4
0
 private Sources.ISource GetSourceByType( ResolverSourceType sourceType )
 {
     return sourceType == ResolverSourceType.Primary ? _primarySource : _secondarySource;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializing constructor
 /// </summary>
 /// <param name="issue">Issue associated with the action</param>
 /// <param name="source">Identifies the source on which the action to take place</param>
 /// <param name="action">Identifies the action to perform</param>
 public ResolverActionEventArgs( Issue               issue,
                                 ResolverSourceType  source,
                                 ResolverActionType  action  )
 {
     this.Issue = issue;
     this.Source = source;
     this.Action = action;
 }