Esempio n. 1
0
        public void GetByStartDate_Works()
        {
            var result = _testRepository.GetLeadsSortedByStartDate();
            var sorted = result.Select(x => x.StartDate).ToList().IsOrdered();

            Assert.IsTrue(sorted);
        }
Esempio n. 2
0
 public JsonResult GetByStartDate()
 {
     return(new JsonResult(_leadsRepository.GetLeadsSortedByStartDate()));
 }