feat(expense): add ExpenseCategoryService + tests
TDD cycle: wrote 3 xUnit tests first (red), then implemented IExpenseCategoryService + ExpenseCategoryService (green).
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using ROLAC.API.DTOs.Expense;
|
||||
namespace ROLAC.API.Services;
|
||||
|
||||
public interface IExpenseCategoryService
|
||||
{
|
||||
Task<List<ExpenseCategoryGroupDto>> GetAllAsync(bool includeInactive);
|
||||
Task<int> CreateGroupAsync(CreateExpenseGroupRequest r);
|
||||
Task UpdateGroupAsync(int id, UpdateExpenseGroupRequest r);
|
||||
Task DeactivateGroupAsync(int id);
|
||||
Task<int> CreateSubCategoryAsync(CreateExpenseSubCategoryRequest r);
|
||||
Task UpdateSubCategoryAsync(int id, UpdateExpenseSubCategoryRequest r);
|
||||
Task DeactivateSubCategoryAsync(int id);
|
||||
}
|
||||
Reference in New Issue
Block a user