015f689d9b
TDD cycle: wrote 3 xUnit tests first (red), then implemented IExpenseCategoryService + ExpenseCategoryService (green).
14 lines
539 B
C#
14 lines
539 B
C#
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);
|
|
}
|