示例#1
0
        public void CanSearchOnCity()
        {
            var repo  = new ListingsRepositoryDapper();
            var found = repo.ListingSearch(new ListingSearchParameters {
                City = "Cleveland"
            });

            Assert.AreEqual(6, found.Count());
        }
示例#2
0
        public void CanSearchOnRange()
        {
            var repo  = new ListingsRepositoryDapper();
            var found = repo.ListingSearch(new ListingSearchParameters {
                MaxRate = 120M, MinRate = 100M
            });

            Assert.AreEqual(3, found.Count());
        }