Beispiel #1
0
        public void CanSearchOnPriceRange()
        {
            var repo = new CardInfoRepositoryADO();

            var found = repo.Search(new CardInfoSearchParameters {
                MinPrice = 7M, MaxPrice = 250M
            });

            Assert.AreEqual(4, found.Count());
        }
Beispiel #2
0
        public void CanSearchOnMaxPrice()
        {
            var repo = new CardInfoRepositoryADO();

            var found = repo.Search(new CardInfoSearchParameters {
                MaxPrice = 100M
            });

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