public void PutEngineBadRequest()
        {
            // Set up Prerequisites
            var controller = new EnginesController();

            // Arrange
            Engine engine = new Engine()
            {
                id         = 4,
                typeEngine = "Hibrid2"
            };

            // Act
            var actionResult = controller.PutEngine(5, engine);

            // Act
            Assert.IsInstanceOfType(actionResult, typeof(BadRequestResult));
        }
        public void PutEngineOk()
        {
            // Set up Prerequisites
            var controller = new EnginesController();

            // Arrange
            Engine engine = new Engine()
            {
                id         = 4,
                typeEngine = "Hibrid"
            };

            // Act
            var actionResult  = controller.PutEngine(4, engine);
            var contentResult = actionResult as NegotiatedContentResult <StatusCodeResult>;

            Assert.AreEqual(204, (int)((StatusCodeResult)actionResult).StatusCode);
        }