Exemple #1
0
        public void GetCompetentieMatrix_Should_Return_Typeof_Matrix_Eindniveau()
        {
            // Arrange
            var controller = new EindCompetentieController(_loggerMock.Object, _eindCompetentieService.Object);

            // Act
            var result = controller.GetCompetentieMatrix("Propedeuse", 1, "2019/2020");

            // Assert
            Assert.IsInstanceOfType(result, typeof(Matrix <Eindniveau>));
        }
Exemple #2
0
        public void GetCompetentieMatrix_Should_Call_GetEindcompetentieMatrixByCriteria_On_EindcompetentieService(
            string specialisatieNaam, int periodeNummer)
        {
            // Arrange
            var controller = new EindCompetentieController(_loggerMock.Object, _eindCompetentieService.Object);

            // Act
            var result = controller.GetCompetentieMatrix(specialisatieNaam, periodeNummer, "2019/2020");

            // Assert
            _eindCompetentieService.Verify(service =>
                                           service.GetEindcompetentieMatrixByCriteria(It.IsAny <ICompetentieRepository.Criteria>()));
        }