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 WhenICUIsFullStatusNotFound() { Alert_to_care.tests.Repository.OccupancyMgmtRepository occupancyMgmt = new Alert_to_care.tests.Repository.OccupancyMgmtRepository(); var response = occupancyMgmt.AddPatient(1); Assert.AreEqual(HttpStatusCode.NotFound, response); }
public void CheckIfPatientIsDeletedWhenDoesNotExist() { Alert_to_care.tests.Repository.OccupancyMgmtRepository occupancyMgmt = new Alert_to_care.tests.Repository.OccupancyMgmtRepository(); var response = occupancyMgmt.DeletePatient(8); Assert.AreEqual(HttpStatusCode.NotFound, response); }
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); }
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); }