Example #1
0
 public void Setup()
 {
     categoryRepo = new InMemoryCategoryRepo();
     SetUpParentCategories();
     categoryService = new CategoryService(categoryRepo);
     categoryService.CreateCategory(categoryTitle, parentCategory);
 }
 public void Setup()
 {
     categoryRepo    = new InMemoryCategoryRepo();
     categoryService = new CategoryService(categoryRepo);
     action          = () =>
     {
         categoryService.CreateCategory(categoryTitle, parentCategory);
     };
 }