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; }
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()); }