Example #1
0
        private static void createTestData()
        {
            //var prod = new Product() { Name = "TestProduct", Price = 10.0, Store = new Store() { Name = "TestStore" } };
              //var prodGroup = new ProductGroup() { Name = "TestGroup", Products = new List<Product>() { prod } };

              var subCategory1 = new Category() { Name = "SubCategory1" };
              var subCategory2 = new Category() { Name = "SubCategory2" };
              var root = new Category() { Name = "Root", SubCategories = new List<Category>() { subCategory1,subCategory2 } };

              _testData = new CategoryTree() {Root = root};
        }
Example #2
0
 public void AddSubCategory(Category category)
 {
     SubCategories.Add(category);
 }