Ejemplo n.º 1
0
 // GET: AgeList
 public ActionResult Index(int year, int ageMin, int ageMax)
 {
     var list = new AgeList(year, ageMin, ageMax);
     var ages = list.GetList();
     return View(ages);
 }
Ejemplo n.º 2
0
 public void GetListCountTest()
 {
     var list = new AgeList(2000, 5, 95);
     Assert.AreEqual<int>(list.GetList().Count(), 91);
 }