public void GetPatientDetailsWhenPatientDoesNotExist() { Alert_to_care.tests.Repository.OccupancyMgmtRepository occupancyMgmt = new Alert_to_care.tests.Repository.OccupancyMgmtRepository(); var response = occupancyMgmt.GetPatientDetails(26); Assert.AreEqual(HttpStatusCode.NotFound, response.StatusCode); }
public void GetPatientDetailsWhenPatientExists() { Alert_to_care.tests.Repository.OccupancyMgmtRepository occupancyMgmt = new Alert_to_care.tests.Repository.OccupancyMgmtRepository(); var response = occupancyMgmt.GetPatientDetails(6); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); Assert.AreEqual("ana", response.Data.name); Assert.AreEqual("b+", response.Data.bloodGroup); }