Esempio n. 1
0
        public void CursusInstantieController_IndexReturnsViewResult()
        {
            var target = new CursusInstantieController();
            var result = target.Index(1, 2016);

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }
Esempio n. 2
0
        public void CursusInstantieController_IndexReturnsCursusInstantieDetailsViewModel()
        {
            var target = new CursusInstantieController();
            var result = target.Index(1, 2016);

            Assert.IsInstanceOfType(result, typeof(ViewResult));

            var resultModel = ((ViewResult)result).Model as CursusInstantieDetailsViewModel;

            Assert.AreEqual(2016, resultModel.Jaar);
            Assert.AreEqual(1, resultModel.WeekNummer);
        }