Beispiel #1
0
        public void BoekingsControllerIndexNotNull()
        {
            // Arrange
            var controller = new BoekingsController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert

            Assert.IsNotNull(result);
        }
        public void Index()
        {
            // Arrange
            repo.Setup(x => x.GetAllBoeking()).Returns(new List <Boeking>());
            BoekingsController controller = new BoekingsController(repo.Object);

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }