public void DeleteTest() { ICategoryService _categoryService = new CategoryService(new CategoryRepository(), new CategoryFilterFactory()); CategoryViewModel _categoryViewModel = GetCategoryViewModel(); _categoryService.Add(_categoryViewModel); _categoryService.Delete(_categoryViewModel); Assert.IsNull(_categoryService.GetByID(1)); }