示例#1
0
        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);
        }
示例#2
0
        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);
        }