public async Task GetPrecaution_PrecautionById_ReturnsOkObjectResult()
        {
            //Arrange
            _precautionService
            .Setup(x => x.GetPrecautionAsync(It.IsAny <int>()))
            .ReturnsAsync(new PrecautionDTO());
            //Act
            var result = await _PrecautionController.GetPrecaution(It.IsAny <int>());

            var resultValue = (result as OkObjectResult).Value as PrecautionDTO;

            //Assert
            _precautionService.Verify();
            Assert.IsInstanceOf <OkObjectResult>(result);
            Assert.IsNotNull(result);
            Assert.IsInstanceOf <PrecautionDTO>(resultValue);
        }
        public async Task GetPrecaution_PrecautionById_ReturnsNotFoundResult()
        {
            //Arrange
            _precautionService
            .Setup(x => x.GetPrecautionAsync(It.IsAny <int>()))
            .ReturnsAsync((PrecautionDTO)null);
            PrecautionController precautionController = _PrecautionController;
            //Act
            var result = await precautionController.GetPrecaution(It.IsAny <int>());

            //Assert
            _precautionService.Verify();
            Assert.IsNotNull(result);
            Assert.IsInstanceOf <NotFoundResult>(result);
        }