예제 #1
0
        public virtual void CanGetByAgencySortedByCodeAsc()
        {
            IList <Org> result = _orgRepository.GetByAgency(13, "Code", "Asc");

            Assert.That(result.Count > 0);
            Assert.That(result[0].Code.CompareTo(result[1].Code) <= 0);
            Assert.That(result[0].Code.CompareTo(result[result.Count - 1].Code) <= 0);
        }
예제 #2
0
 public IList <Org> GetByAgency(int agencyId)
 {
     return(_orgRepository.GetByAgency(agencyId, "LongDesc", "Asc"));
 }