Ejemplo n.º 1
0
        public void UpdateHome_ShouldChangeTheListSize()
        {
            ICategoryTable categoryTable = tables.GetCategoryTable();
            int            actual_size   = categoryTable.FetchAllCategories().Count;

            CategoriesUpdater.TablesProvider = tables;
            CategoriesUpdater.UpdateHome();

            int new_size = categoryTable.FetchAllCategories().Count;

            Assert.NotEqual(actual_size, new_size);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the available categories.
        /// </summary>
        /// <returns>All available categories.</returns>
        public List <Category> GetAvailableCategories()
        {
            ICategoryTable  categoryTable = this.tablesProvider.GetCategoryTable();
            List <Category> categories    = categoryTable.FetchAllCategories();

            return(categories);
        }