public void GivenPatientIdWhoseDataStored_WhenPatientVitalsAlertUponValidation_ThenExpectedAlertMessage() { dataAccess.WritePatientVitalsData(new PatientVitals() { PatientId = "101", Temperature = 100, Spo2 = 96, PulseRate = 70 }); string str = "Spo2Alert TemperatureAlert "; Assert.AreEqual(str, vitalsAlertUponValidation.PatientVitalsAlertUponValidation("101")); }
/// <summary> /// This function stores the values of the patient-vitals generated for a particular patient /// </summary> /// <param name="patientVitals"></param> public void StorePatientVitalsData(PatientVitals patientVitals) { if (patientVitals.PatientId == "") { throw new ArgumentException("PtaientTid"); } _dataAccessComponent.WritePatientVitalsData(patientVitals); }