Exemple #1
0
 public ProcessingUnit(IVitalsRepository vitalsRepo, IAlertManager alertManager, IVitalsAlertManager vitalsManager, IAdmissionRepository admissionRepository)
 {
     m_queue            = SharedQueue.Instance;
     m_vitalsRepository = vitalsRepo;
     m_validator        = new VitalsRangeValidator(admissionRepository);
     m_alertManager     = alertManager;
     m_vitalsManager    = vitalsManager;
 }
Exemple #2
0
 public void TestInitialize()
 {
     countFinal  = 0;
     alertMock   = new MockAlertManager(ref countFinal);
     vitalsMock  = new MockVitalsAlertManager();
     vitalsRepo  = new VitalsRepository(true);
     m_processor = new Processor.ProcessingUnitLib.ProcessingUnit(vitalsRepo, alertMock, vitalsMock, new MockAdmissionRepo());
 }