Ejemplo n.º 1
0
        public void VerifyNestedCategoriesAreCreated()
        {
            CategoryFacade facade = new CategoryFacade();
            Categories category = new Categories("Category", "15");
            var listOfNestedCategories = new List<Categories>()
            {
                new Categories("NestedOne", "2"),
                new Categories("NestedTwo", "4"),
                new Categories("NestedThree", "3")
            };

            facade.AddCategory(category);
            facade.AddNestedCategory(category, listOfNestedCategories);
            facade.GoToHierarchyPage(category, listOfNestedCategories);

            facade.AssertCategoryHierachy(category, listOfNestedCategories);
        }