Пример #1
0
        public async Task DeleteCategory_WithExistingCategory_ShouldDeleteCategoryCorrectly()
        {
            const string catName = "test-category";

            await _categoryService.AddCategory(catName, CategoryType.Game);

            await _categoryService.DeleteCategory(catName);

            var category = _categoryRepo.AllWithDeleted().FirstOrDefault(c => c.Name == catName);

            Assert.True(category.IsDeleted);
        }