public void GetAllPatientWhenICUDoesntExist() { Alert_to_care.tests.Repository.OccupancyMgmtRepository occupancyMgmt = new Alert_to_care.tests.Repository.OccupancyMgmtRepository(); var response = occupancyMgmt.GetAllPatient(139); Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode); }
public void GetAllPatientWhenPatientsArePresent() { Alert_to_care.tests.Repository.OccupancyMgmtRepository occupancyMgmt = new Alert_to_care.tests.Repository.OccupancyMgmtRepository(); var response = occupancyMgmt.GetAllPatient(1); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); Assert.AreEqual("ana", response.Data[0].name); Assert.AreEqual(6, response.Data[0].id); }