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
 public virtual void Context()
 {
     repo = new MockRepository();
     loggerStub = repo.Stub<ILogger>();
     CreateMockEventManager();
     qcReaderUpdater = new QualityCenterReaderUpdater(null);
     qcReaderUpdater.Initialize(GetConfigXml(), loggerStub);
 }
        public void Initialize(XmlElement config, IEventManager eventManager, IProfile profile) {
            ConfigurationReader.ProcessMappingSettings(configuration.PriorityMappings, config["PriorityMappings"], "VersionOnePriority", "QualityCenterPriority");
            
            this.eventManager = eventManager;
            logger = new Logger(eventManager);

            ParseConfiguration(config);

            qcServer = new QualityCenterReaderUpdater(configuration.PriorityMappings);
            qcWriter = new QualityCenterUpdaterService(qcServer);
            qcReader = new QualityCenterReaderService(qcServer);

            qcServer.Initialize(config, new Logger(eventManager));
            qcWriter.Initialize(config, eventManager, profile);
            qcReader.Initialize(config, eventManager, profile);
        }
 public QualityCenterUpdaterService(QualityCenterReaderUpdater server) {
     this.server = server;
 }
 public QualityCenterReaderService(QualityCenterReaderUpdater qcServer) {
     server = qcServer;
 }