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

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

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

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