public void GetByStartDate_Works() { var result = _testRepository.GetLeadsSortedByStartDate(); var sorted = result.Select(x => x.StartDate).ToList().IsOrdered(); Assert.IsTrue(sorted); }
public JsonResult GetByStartDate() { return(new JsonResult(_leadsRepository.GetLeadsSortedByStartDate())); }