add task priority to CreateProjectCommand

This commit is contained in:
2026-01-12 12:20:08 +03:30
parent 0eff1b9a66
commit 20ece4886c
3 changed files with 13 additions and 10 deletions

View File

@@ -16,11 +16,11 @@ public class ProjectTask : ProjectHierarchyNode
_sections = new List<TaskSection>();
}
public ProjectTask(string name, Guid phaseId, string? description = null) : base(name, description)
public ProjectTask(string name, Guid phaseId,ProjectTaskPriority priority, string? description = null) : base(name, description)
{
PhaseId = phaseId;
_sections = new List<TaskSection>();
Priority = ProjectTaskPriority.Low;
Priority = priority;
AddDomainEvent(new TaskCreatedEvent(Id, phaseId, name));
}