コード例 #1
0
        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);
        }
コード例 #2
0
        public void UnCommit(BacklogItem backlogItem)
        {
            CommittedBacklogItem committedBacklogItem = new CommittedBacklogItem(this.TenantId, this.SprintId,
                backlogItem.BacklogItemId);

            this._backlogItems.Remove(committedBacklogItem);
        }
コード例 #3
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;
        }
コード例 #4
0
 public void Commit(BacklogItem backlogItem)
 {
     int ordering = this._backlogItems.Count + 1;
     this._backlogItems.Add(new CommittedBacklogItem(this.TenantId, this.SprintId, backlogItem.BacklogItemId,
         ordering));
 }