public void UpdateBooks_ReturnTrue_IfTheMethodIsCalled()
        {
            BookServiceMock.Setup(x => x.Update(It.IsAny <string>(), It.IsAny <Book>()));
            var operation = new UpdateBookOperation(BookServiceMock.Object);

            operation.UpdateBooks(It.IsAny <string>(), It.IsAny <Book>());
            BookServiceMock.Verify(x => x.Update(It.IsAny <string>(), It.IsAny <Book>()), Times.Once);
        }
        public ActionResult <string> Update([FromRoute] string id, [FromBody] Book bookIn)
        {
            var operation = new UpdateBookOperation(_bookService);

            if (operation == null)
            {
                return(NotFound());
            }
            operation.UpdateBooks(id, bookIn);
            return(NoContent());
        }