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")); }
public string PatientVitalsAlert(string patientId) { IPatientVitalsAlertUponValidation alertUponValidation = new RuleBasedPatientVitalsAlertUponValidation(dataAccess); return(alertUponValidation.PatientVitalsAlertUponValidation(patientId)); }