feat(expense): add ExpenseCategoryService + tests

TDD cycle: wrote 3 xUnit tests first (red), then implemented
IExpenseCategoryService + ExpenseCategoryService (green).
This commit is contained in:
Chris Chen
2026-05-29 18:24:07 -07:00
parent 15cdfe6f92
commit 015f689d9b
3 changed files with 160 additions and 0 deletions
@@ -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);
}