C# Class VersionOne.ServiceHost.QualityCenterServices.QualityCenterReaderUpdater

This class knows about WorkitemServices and TestServices event objects and encapsulates the QualityCenterClient It creates the necessary event objects and object collections that eventually get published It does *not* know about the EventManager or the QualityCenter COM library It does *not* publish events directly or subscribe to events directly
Datei anzeigen Open project: versionone/VersionOne.Integration.HPALM Class Usage Examples

Public Methods

Method Description
Close ( ) : void
CreateTest ( V1TestReady testData ) : PartnerTestEvent
GetLatestDefects ( System.DateTime lastCheck ) : IList
GetLatestTestRuns ( System.DateTime lastCheck ) : ICollection
HandlesQCProject ( string id ) : bool
HandlesQCProject ( string domain, string project ) : bool
HandlesV1Project ( string v1Project ) : bool
Initialize ( XmlElement config, ILogger log ) : void
OnDefectCreated ( WorkitemCreationResult createdResult ) : void
OnDefectStateChange ( WorkitemStateChangeResult stateChangeResult ) : bool
QualityCenterReaderUpdater ( MappingInfo>.IDictionary priorityMappings ) : System

Private Methods

Method Description
Combine ( ICollection listOne, ICollection listTwo ) : ArrayList
CreateV1Defect ( string title, string externalId, string description, string priority, string v1Project ) : Defect
CreateV1TestRun ( string externalId, System.DateTime timestamp, string status ) : TestRun
GetProjectFromExternalId ( string externalId ) : IQualityCenterClient
MappingPairEmpty ( MappingInfo>.KeyValuePair pair ) : bool
ResolvePriorityMapping ( string qcPriorityName ) : VersionOne.ServiceHost.Core.Configuration.MappingInfo

Method Details

Close() public method

public Close ( ) : void
return void

GetLatestDefects() public method

public GetLatestDefects ( System.DateTime lastCheck ) : IList
lastCheck System.DateTime
return IList

GetLatestTestRuns() public method

public GetLatestTestRuns ( System.DateTime lastCheck ) : ICollection
lastCheck System.DateTime
return ICollection

HandlesQCProject() public method

public HandlesQCProject ( string id ) : bool
id string
return bool

HandlesQCProject() public method

public HandlesQCProject ( string domain, string project ) : bool
domain string
project string
return bool

HandlesV1Project() public method

public HandlesV1Project ( string v1Project ) : bool
v1Project string
return bool

Initialize() public method

public Initialize ( XmlElement config, ILogger log ) : void
config System.Xml.XmlElement
log ILogger
return void

OnDefectCreated() public method

public OnDefectCreated ( WorkitemCreationResult createdResult ) : void
createdResult VersionOne.ServiceHost.WorkitemServices.WorkitemCreationResult
return void

OnDefectStateChange() public method

public OnDefectStateChange ( WorkitemStateChangeResult stateChangeResult ) : bool
stateChangeResult VersionOne.ServiceHost.WorkitemServices.WorkitemStateChangeResult
return bool

QualityCenterReaderUpdater() public method

public QualityCenterReaderUpdater ( MappingInfo>.IDictionary priorityMappings ) : System
priorityMappings MappingInfo>.IDictionary
return System