Files
ColaFlow/colaflow-api/src/Modules/ProjectManagement/ColaFlow.Modules.ProjectManagement.Domain/Events/TaskRemovedFromSprintEvent.cs
Yaojia Wang 8c6b611b17 feat(backend): Implement Sprint Aggregate Root and Domain Events (Task 1)
Created Sprint domain model with full business logic and validation:
- SprintId value object
- SprintStatus enum (Planned/Active/Completed)
- Sprint aggregate root with lifecycle management
- 7 domain events (Created, Updated, Started, Completed, Deleted, TaskAdded, TaskRemoved)

Business Rules Implemented:
- Sprint duration validation (1-30 days)
- Status transitions (Planned → Active → Completed)
- Task management (add/remove with validation)
- Cannot modify completed sprints

Story 3 Task 1/6 completed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 00:08:48 +01:00

9 lines
269 B
C#

using MediatR;
namespace ColaFlow.Modules.ProjectManagement.Domain.Events;
/// <summary>
/// Event raised when a Task is removed from a Sprint
/// </summary>
public sealed record TaskRemovedFromSprintEvent(Guid SprintId, Guid TaskId, Guid ProjectId) : INotification;