예제 #1
0
        public void GetAllPatientWhenICUDoesntExist()
        {
            PatientDataRepository patientDataRepository = new PatientDataRepository();
            var response = patientDataRepository.GetAllPatientsInTheICU(139);

            Assert.AreEqual(0, response.Count);
        }
예제 #2
0
        public void GetAllPatientWhenPatientsArePresent()
        {
            PatientDataRepository patientDataRepository = new PatientDataRepository();
            var response = patientDataRepository.GetAllPatientsInTheICU(1);

            Assert.AreEqual("ana", response[0].Name);
            Assert.AreEqual(6, response[0].Id);
        }