예제 #1
0
        public BacklogItems.BacklogItem PlanBacklogItem(
            BacklogItemId newBacklogItemId,
            String summary,
            String category,
            BacklogItemType type,
            StoryPoints storyPoints)
        {
            var backlogItem =
                new BacklogItems.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);
        }
예제 #2
0
        public void PlannedProductBacklogItem(BacklogItem backlogItem)
        {
            AssertionConcern.AssertArgumentEquals(this.TenantId, backlogItem.TenantId, "The product and backlog item must have same tenant.");
            AssertionConcern.AssertArgumentEquals(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);
        }
예제 #3
0
        public BacklogItems.BacklogItem PlanBacklogItem(
                BacklogItemId newBacklogItemId,
                String summary,
                String category,
                BacklogItemType type,
                StoryPoints storyPoints)
        {
            BacklogItems.BacklogItem backlogItem =
                new BacklogItems.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;
        }