public void FilterOptionsCompetentie() { // Arrange var filterViewModel = new FilterOptionsViewModel(); var allCompetenties = _competentieRepository.GetAll(); filterViewModel.AddCompetenties(allCompetenties); // Act // verwachte CompetentieNamen op basis van de DummyCompetentieRepository var allCompetentieNamen = new List <string> { "Procesanalyse uitvoeren", "Informatieanalyse uitvoeren", "Over inzet van ICT adviseren", "Analyse van algoritmes", "Vernietigen van code" }; // Assert <expected, actual> Assert.AreEqual(allCompetentieNamen.Count, filterViewModel.CompetentieFilter.Count()); Assert.AreEqual(allCompetentieNamen.Last(), filterViewModel.CompetentieFilter.Last()); Assert.AreEqual(allCompetentieNamen.ElementAt(2), filterViewModel.CompetentieFilter.ElementAt(2)); }
public void setup() { ces = new CompetentieExporterService(); data = new List <Competentie>(dcrp.GetAll()); }