public void TestTurnOffAlertUnSuccessful() { var controller = new MedicalDeviceController(_deviceRepo, _patientRepo); var response = controller.AlertOff("1F1"); var actualResponse = response as StatusCodeResult; Assert.NotNull(actualResponse); Assert.Equal(500, actualResponse.StatusCode); }
public void TestTurnOffAlertNullBedId() { var controller = new MedicalDeviceController(_deviceRepo, _patientRepo); var response = controller.AlertOff(null); var actualResponse = response as BadRequestObjectResult; Assert.NotNull(actualResponse); Assert.Equal(400, actualResponse.StatusCode); }