public void GetAllYears()
        {
            // arrange

            // act
            var allYears = _appService.GetAllYears().ToList();

            // assert
            Assert.IsTrue(allYears.Any());
            Assert.AreEqual(DateTime.Today.Year, allYears.First());
        }
Esempio n. 2
0
 private void CreateDateLists(int selectedMonth, int selectedYear)
 {
     ViewData[Resource.MonthsViewData] = MonthViewModel.GetAll(selectedMonth);
     ViewData[Resource.YearsViewData]  = new SelectList(_service.GetAllYears(), selectedYear);
 }