public void FetchListTest() { SearchRequestService service = new SearchRequestService(); ItemSearchCriteriaTestHelper criteriaTestHelper = new ItemSearchCriteriaTestHelper(); ItemSearchCriteria criteria = criteriaTestHelper.GetTestEntity(); IEnumerable<AmazonItem> list = service.FetchList(criteria); Assert.IsNotNull(list); }
public void FetchListTest() { SearchRequestDao request = new SearchRequestDao(); ItemSearchCriteriaTestHelper criteriaTestHelper = new ItemSearchCriteriaTestHelper(); ItemSearchCriteria criteria = criteriaTestHelper.GetTestEntity(); IEnumerable<AmazonItem> list = request.FetchList(criteria); Assert.IsTrue(list.Any(), "The search results list is empty when it should not have been."); }