public void PlannedProductBacklogItem(BacklogItem backlogItem) { AssertionConcern.Equals(this.TenantId, backlogItem.TenantId, "The product and backlog item must have same tenant."); AssertionConcern.Equals(this.ProductId, backlogItem.ProductId, "The backlog item must belong to product"); int ordering = this._backlogItems.Count + 1; ProductBacklogItem productBacklogItem = new ProductBacklogItem(this.TenantId, this.ProductId, backlogItem.BacklogItemId, ordering); this._backlogItems.Add(productBacklogItem); }
public void UnCommit(BacklogItem backlogItem) { CommittedBacklogItem committedBacklogItem = new CommittedBacklogItem(this.TenantId, this.SprintId, backlogItem.BacklogItemId); this._backlogItems.Remove(committedBacklogItem); }
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; }
public void Commit(BacklogItem backlogItem) { int ordering = this._backlogItems.Count + 1; this._backlogItems.Add(new CommittedBacklogItem(this.TenantId, this.SprintId, backlogItem.BacklogItemId, ordering)); }