public void FindAntwoordNull()
        {
            var antwoordDTO = new IngevoerdAntwoordDTO
            {
                Id             = 1,
                JsonAntwoord   = "JsonAntwoord",
                GescoordeScore = 5,
                TeamId         = 1,
                VraagId        = 1
            };

            var response = new Response <IngevoerdAntwoordDTO> {
                DTO = antwoordDTO
            };

            //Arrange
            var mockService = new Mock <IIngevoerdAntwoordService>();

            mockService.Setup(x => x.FindIngevoerdAntwoord(1)).Returns(response);
            var controller = new IngevoerdAntwoordController(mockService.Object);

            //Act
            var foundAntwoord = controller.GetById(5) as ObjectResult;

            //Assert
            Assert.IsInstanceOf(typeof(BadRequestObjectResult), foundAntwoord);
        }
        public void FindAntwoordCorrect()
        {
            var antwoordDTO = new IngevoerdAntwoordDTO
            {
                Id             = 1,
                JsonAntwoord   = "JsonAntwoord",
                GescoordeScore = 5,
                TeamId         = 1,
                VraagId        = 1
            };

            var response = new Response <IngevoerdAntwoordDTO> {
                DTO = antwoordDTO
            };

            //Arrange
            var mockService = new Mock <IIngevoerdAntwoordService>();

            mockService.Setup(x => x.FindIngevoerdAntwoord(1)).Returns(response);
            var controller = new IngevoerdAntwoordController(mockService.Object);

            //Act
            var foundAntwoord = controller.GetById(1) as ObjectResult;
            var entity        = foundAntwoord.Value as IngevoerdAntwoordViewModelResponse;

            //Assert
            Assert.That(entity.Id, Is.EqualTo(antwoordDTO.Id));
            Assert.That(entity.JsonAntwoord, Is.EqualTo(antwoordDTO.JsonAntwoord));
        }