public void FetchListNullTest() { SearchRequestDao request = new SearchRequestDao(); ItemSearchCriteriaTestHelper testHelper = new ItemSearchCriteriaTestHelper(); ItemSearchCriteria criteria = testHelper.GetFullEntity(); IEnumerable<AmazonItem> list = request.FetchList(criteria); Assert.IsFalse(list.Any(), "The search results list should have been empty."); }
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."); }