public void GivenUrlWhenSearchingScrapThenReturnSiteContent()
        {
            var results           = _hifiCorpStoreSite.Search("laptop");
            var hasPositivePrices = true;

            Assert.NotNull(results);
            Assert.Equal(hasPositivePrices, results.All(r => r.Price > 0));
        }
示例#2
0
        public void GivenUrlWhenSearchingScrapThenReturnSiteContent()
        {
            var results           = _shopriteStoreSite.Search("bread");
            var hasPositivePrices = true;

            Assert.NotNull(results);
            Assert.Equal(hasPositivePrices, results.Any(r => r.Price > 0));
        }