public TaskRenamed(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId, string name)
 {
     this.TenantId = tenantId;
     this.BacklogItemId = backlogItemId;
     this.TaskId = taskId;
     this.Name = name;
 }
 public ProductBacklogItem(TenantId tenantId, ProductId productId, BacklogItemId backlogItemId, int ordering)
 {
     this.TenantId = tenantId;
     this.ProductId = productId;
     this.BacklogItemId = backlogItemId;
     this.Ordering = ordering;
 }
 public CommittedBacklogItem(TenantId tenantId, SprintId sprintId, BacklogItemId backlogItemId, int ordering = 0)
 {
     this.TenantId = tenantId;
     this.SprintId = sprintId;
     this.BacklogItemId = backlogItemId;
     this.Ordering = ordering;
 }
 public ScheduledBacklogItem(TenantId tenantId, ReleaseId releaseId, BacklogItemId backlogItemId, int ordering = 0)
 {
     this.TenantId = tenantId;
     this.ReleaseId = releaseId;
     this.BacklogItemId = backlogItemId;
     this.Ordering = ordering;
 }
        public TaskRemoved(TenantId tenantId, BacklogItemId backlogItemId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemSummarized(TenantId tenantId, BacklogItemId backlogItemId, string summary)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.Summary = summary;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemStoryTold(TenantId tenantId, BacklogItemId backlogItemId, string story)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.Story = story;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
 public void ReOrderFrom(BacklogItemId id, int orderOfPriority)
 {
     if(this.BacklogItemId.Equals(id)) {
         this.Ordering = orderOfPriority;
     }
     else if(this.Ordering >= orderOfPriority) {
         this.Ordering = this.Ordering + 1;
     }
 }
        public BacklogItemUnscheduled(TenantId tenantId, BacklogItemId backlogItemId, ReleaseId unscheduledReleaseId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.UnscheduledReleaseId = unscheduledReleaseId;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
 internal void ReorderFrom(BacklogItemId id, int ordering)
 {
     if(this.BacklogItemId.Equals(id)) {
         this.Ordering = ordering;
     }
     else if(this.Ordering>=ordering) {
         this.Ordering = this.Ordering + 1;
     }
 }
        public BacklogItemStoryPointsAssigned(TenantId tenantId, BacklogItemId backlogItemId, StoryPoints storyPoints)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.StoryPoints = storyPoints;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemDiscussionInitiated(TenantId tenantId, BacklogItemId backlogItemId, BacklogItemDiscussion discussion)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.Discussion = discussion;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemTypeChanged(TenantId tenantId, BacklogItemId backlogItemId, BacklogItemType backlogItemType)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.BacklogItemType = backlogItemType;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemCategoryChanged(TenantId tenantId, BacklogItemId backlogItemId, string category)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.Category = category;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemCommitted(TenantId tenantId, BacklogItemId backlogItemId, SprintId sprintId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.SprintId = sprintId;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
Exemplo n.º 16
0
 public TaskDefined(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId, string volunteerMemberId,
     string name, string description)
 {
     this.TenantId = tenantId;
     this.BacklogItemId = backlogItemId;
     this.TaskId = taskId;
     this.VolunteerMemberId = volunteerMemberId;
     this.Name = name;
     this.Description = description;
 }
        public BacklogItemStatusChanged(TenantId tenantId, BacklogItemId backlogItemId,
            BacklogItemStatus backlogItemStatus)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.BacklogItemStatus = backlogItemStatus;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public TaskDescribed(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId, string description)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.TaskId = taskId;
            this.Description = description;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BusinessPriorityAssigned(TenantId tenantId, BacklogItemId backlogItemId,
            BusinessPrionrity businessPrionrity)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.BusinessPrionrity = businessPrionrity;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public TaskStatusChanged(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId, TaskStatus status)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.TaskId = taskId;
            this.Status = status;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public BacklogItemDiscussionRequested(TenantId tenantId, ProductId productId, BacklogItemId backlogItemId, bool isRequested)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.BacklogItemId = backlogItemId;
            this.IsRequested = isRequested;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public TaskVolunteerAssigned(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId,
            string volunteerMemberId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.TaskId = taskId;
            this.VolunteerMemberId = volunteerMemberId;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public TaskHoursRemainingEstimated(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId,
            int hoursRemaining)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.TaskId = taskId;
            this.HoursRemaining = hoursRemaining;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public ProductBacklogItemPlanned(TenantId tenantId, ProductId productId, BacklogItemId backlogItemId,
            string summary, string category, BacklogItemType backlogItemType, StoryPoints storyPoints)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.BacklogItemId = backlogItemId;
            this.Summary = summary;
            this.Category = category;
            this.BacklogItemType = backlogItemType;
            this.StoryPoints = storyPoints;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
Exemplo n.º 25
0
        public BacklogItem(TenantId tenantId, ProductId productId, BacklogItemId backlogItemId, string summary,
            string category, BacklogItemType type, BacklogItemStatus backlogItemStatus, StoryPoints storyPoints)
        {
            AssertionConcern.NotEmpty(summary, "The summary must be provided.");
            AssertionConcern.Length(summary, 100, "The summary must be 100 characters or less.");

            this.TenantId = tenantId;
            this.ProductId = productId;
            this.BacklogItemId = backlogItemId;
            this.Summary = summary;
            this.Category = category;
            this.Type = type;
            this.Status = backlogItemStatus;
            this.StoryPoints = storyPoints;

            this._tasks = new List<Task>();
        }
Exemplo n.º 26
0
        public Task(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId, TeamMember teamMember, string name,
            string description, int hoursRemaining, TaskStatus status)
        {
            AssertionConcern.NotEmpty(name, "Name is required.");
            AssertionConcern.Length(name, 100, "Name must be 100 characters or less");
            AssertionConcern.NotEmpty(description, "Description is required.");
            AssertionConcern.Length(description, 65000, "Description must be 65000 characters or less.");
            AssertionConcern.NotNull(teamMember, "The team member must be provided");
            AssertionConcern.Equals(tenantId, teamMember.TeamMemberId.TenantId,
                "The volunteer must be of the same tenant.");

            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.TaskId = taskId;
            this.Volunteer = teamMember.TeamMemberId;
            this.Name = name;
            this.Description = description;
            this.HoursRemaining = hoursRemaining;
            this.Status = status;
        }
Exemplo n.º 27
0
 public void ReorderFrom(BacklogItemId id, int ordering)
 {
     foreach(ProductBacklogItem productBacklogItem in this._backlogItems) {
         productBacklogItem.ReorderFrom(id, ordering);
     }
 }
Exemplo n.º 28
0
        public BacklogItem PlanBacklogItem(BacklogItemId newBacklogItemId, string summary, string category,
            BacklogItemType type, StoryPoints storyPoints)
        {
            BacklogItem backlogItem = new BacklogItem(this.TenantId, this.ProductId, newBacklogItemId, summary, category,
                type, BacklogItemStatus.Planned, storyPoints);

            DomainEventPublisher.Instance.Publish(new ProductBacklogItemPlanned(backlogItem.TenantId,
                backlogItem.ProductId, backlogItem.BacklogItemId, backlogItem.Summary, backlogItem.Category,
                backlogItem.Type, backlogItem.StoryPoints));

            return backlogItem;
        }
Exemplo n.º 29
0
 public void ReOrderFrom(BacklogItemId id, int orderOfPriority)
 {
     foreach(CommittedBacklogItem committedBacklogItem in this._backlogItems) {
         committedBacklogItem.ReOrderFrom(id, orderOfPriority);
     }
 }