public void PutNumber_WhenCalled_ReturnsNotFound(int id)
        {
            // Arrange
            service.Setup(x => x.Update(numberService))
            .Returns(true);

            mapper.Setup(x => x.Map <NumberServiceModel>(It.IsAny <NumberControllerModel>()))
            .Returns(numberService);

            // Act
            var result = numbersController.PutNumber(id, numberController);

            // Assert
            var response = result as StatusCodeResult;

            Assert.Equal(400, response.StatusCode);
        }
        public void PutNumber_WhenCalled__ReturnsInternalError(int id)
        {
            // Arrange
            numbersController = new NumbersController(null, null, log.Object, query.Object);

            // Act
            var result = numbersController.PutNumber(id, numberController);

            // Assert
            var response = result as StatusCodeResult;

            Assert.Equal(500, response.StatusCode);
        }