コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: charmon1618/ArtHoist
        public void GetByPropertyType_Works()
        {
            var result = _testRepository.GetLeadsSortedByPropertyType();

            var sorted = result.Select(x => x.PropertyType).ToList().IsOrdered();

            Assert.IsTrue(sorted);
        }
コード例 #2
0
 public JsonResult GetLeadsSortedByPropertyType()
 {
     return(new JsonResult(_leadsRepository.GetLeadsSortedByPropertyType()));
 }