public void DeleteVisa()
        {
            // Arrange
            VisaController controller = new VisaController();

            var actResult = controller.Delete(1);
            // Act
            var result = actResult as OkNegotiatedContentResult <bool>;

            // Assert
            Assert.IsNotNull(result);
            Assert.IsTrue(result.Content == true);
        }
        public void getVisa()
        {
            // Arrange
            VisaController controller = new VisaController();

            var actResult = controller.Get(1);
            // Act
            var result = actResult as OkNegotiatedContentResult <Visa>;

            // Assert
            Assert.IsNotNull(result);
            Assert.IsTrue(result.Content.ID == 1);
        }
        public void PostVisa()
        {
            // Arrange
            VisaController controller = new VisaController();

            Visa VisaObj = new Visa
            {
                Number   = "123456",
                Comments = "Good Work",
            };
            var actResult = controller.Post(VisaObj);
            // Act
            var result = actResult as OkNegotiatedContentResult <Visa>;

            // Assert
            Assert.IsNotNull(result);
            Assert.IsTrue(result.Content.ID > 0);
        }
        public void PutVisa()
        {
            // Arrange
            VisaController controller = new VisaController();

            Visa VisaObj = new Visa
            {
                Number   = "Put request sucessfull",
                Comments = "Good Work",
                ID       = 1
            };
            var actResult = controller.Put(1, VisaObj);
            // Act
            var result = actResult as OkNegotiatedContentResult <Visa>;

            // Assert
            Assert.IsNotNull(result);
            Assert.IsTrue(result.Content.Number.Equals("Put request sucessfull"));
        }