-
Notifications
You must be signed in to change notification settings - Fork 0
[Test] Unit + Integration tests for DeleteCategoryHandler and DeleteStatusHandler #122
Copy link
Copy link
Closed
Labels
go:yesReady to implementReady to implementpriority:p2Next sprintNext sprintrelease:backlogNot yet targetedNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchiveSprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membersquad:copilotAssigned to @copilot (Coding Agent) for autonomous workAssigned to @copilot (Coding Agent) for autonomous worksquad:gimliAssigned to Gimli (Tester)Assigned to Gimli (Tester)type:choreMaintenance, refactoring, cleanupMaintenance, refactoring, cleanup
Metadata
Metadata
Labels
go:yesReady to implementReady to implementpriority:p2Next sprintNext sprintrelease:backlogNot yet targetedNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchiveSprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membersquad:copilotAssigned to @copilot (Coding Agent) for autonomous workAssigned to @copilot (Coding Agent) for autonomous worksquad:gimliAssigned to Gimli (Tester)Assigned to Gimli (Tester)type:choreMaintenance, refactoring, cleanupMaintenance, refactoring, cleanup
Summary
Sprint 3 adds
DeleteCategoryHandlerandDeleteStatusHandler. This issue covers all test coverage for those handlers.Test Files to Create
Unit Tests — Handler Layer
tests/Api.Tests.Unit/Handlers/Categories/DeleteCategoryHandlerTests.csHandle_ValidId_SetsArchivedFieldsAndPersists— verifiesArchived=true,ArchivedBy,ArchivedOnare setHandle_CategoryNotFound_ReturnsFailureHandle_RepositoryThrows_ReturnsFailuretests/Api.Tests.Unit/Handlers/Statuses/DeleteStatusHandlerTests.csUnit Tests — Endpoint Layer
tests/Api.Tests.Unit/Endpoints/CategoryEndpointsTests.cs(extend existing)DeleteCategory_AdminUser_Returns204DeleteCategory_NonAdmin_Returns403DeleteCategory_NotFound_Returns404tests/Api.Tests.Unit/Endpoints/StatusEndpointsTests.cs(extend existing)Integration Tests
tests/Api.Tests.Integration/Handlers/DeleteCategoryHandlerIntegrationTests.cstests/Api.Tests.Integration/Handlers/DeleteStatusHandlerIntegrationTests.csTest Tooling (match existing patterns)
*HandlerTests.cspattern inApi.Tests.Unit/Handlers/Categories/Acceptance Criteria
DeleteCategoryHandlerandDeleteStatusHandleris ≥ 80%Depends On