Beispiel #1
0
        public void Get_IdIsEqualToTwo_ReturnsFallTerm()
        {
            // arrange
            var expected = FakeTermRepository.terms[1];
            var termId   = 2;

            // act
            var actual = _termService.Get(termId);

            // assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
 public ActionResult Term()
 {
     ViewBag.Term = termService.Get().OrderBy(o => o.Orders);
     return(View());
 }