예제 #1
0
		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.");
		}
예제 #2
0
		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.");
		}