public void PutBeerOk()
        {
            var            logicMock  = new Mock <IBeerLogic>(MockBehavior.Strict);
            BeerController controller = new BeerController(logicMock.Object);
            BeerModel      beerModel  = new BeerModel()
            {
                BeerFactoryId = 1,
                Description   = "Prueba",
                Name          = "Prueba",
                Qualification = 1
            };

            logicMock.Setup(x => x.Update(It.IsAny <Beer>()));

            var result   = controller.Put(1, beerModel);
            var okResult = result as OkObjectResult;

            logicMock.VerifyAll();
        }
        public void PutBeerNotExist()
        {
            var            logicMock  = new Mock <IBeerLogic>(MockBehavior.Strict);
            BeerController controller = new BeerController(logicMock.Object);
            BeerModel      beerModel  = new BeerModel()
            {
                BeerFactoryId = 1,
                Description   = "Prueba",
                Name          = "Prueba",
                Qualification = 1
            };

            logicMock.Setup(x => x.Update(It.IsAny <Beer>())).Throws(new Exception());

            var result   = controller.Put(1, beerModel);
            var okResult = result as NotFoundObjectResult;

            logicMock.VerifyAll();

            Assert.AreEqual(404, okResult.StatusCode);
        }