public void AllegroGetCategoryFiltersIsEmpty() { AllegroFetchUrls afu = new AllegroFetchUrls(); List <WebsiteCategoriesFilterSearch> filters = afu.GetCategoryFilters(0).ToList(); Assert.IsTrue(!filters.Any()); }
public void AllegroGetAllCategories() { AllegroFetchUrls afu = new AllegroFetchUrls(); var categories = afu.GetAllCategories().ToList(); Assert.IsTrue(categories.Any()); }
public void AllegroGetCategoryFiltersIsNotEmpty() { AllegroFetchUrls afu = new AllegroFetchUrls(); List <WebsiteCategoriesFilterSearch> filters = afu.GetCategoryFilters(1).ToList(); Assert.IsTrue(filters.Any()); Assert.IsTrue(filters.All(x => x.WebsiteCategoryId == 1)); }
public void AllegroGetTaskCountNotThrow() { AllegroFetchUrls afu = new AllegroFetchUrls(); Assert.DoesNotThrow(() => afu.GetTaskCount(6406, 1)); }