Example #1
0
        public void AllegroGetCategoryFiltersIsEmpty()
        {
            AllegroFetchUrls afu = new AllegroFetchUrls();
            List <WebsiteCategoriesFilterSearch> filters = afu.GetCategoryFilters(0).ToList();

            Assert.IsTrue(!filters.Any());
        }
Example #2
0
        public void AllegroGetAllCategories()
        {
            AllegroFetchUrls afu = new AllegroFetchUrls();
            var categories       = afu.GetAllCategories().ToList();

            Assert.IsTrue(categories.Any());
        }
Example #3
0
        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));
        }
Example #4
0
        public void AllegroGetTaskCountNotThrow()
        {
            AllegroFetchUrls afu = new AllegroFetchUrls();

            Assert.DoesNotThrow(() => afu.GetTaskCount(6406, 1));
        }