Exemple #1
0
        public void Estimate(StoryPoints storyPoints)
        {
            if (_participatingRound == null)
                throw new NotParticipatingInRoundException(_name);

            Estimated(this, new EstimatedArgs(new Estimate(_name, storyPoints)));
        }
        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 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;
        }
        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>();
        }
 public BacklogItem(
     TenantId tenantId,
     ProductId productId,
     BacklogItemId backlogItemId,
     string summary,
     string category,
     BacklogItemType type,
     BacklogItemStatus backlogItemStatus,
     StoryPoints storyPoints)
 {
     this.BacklogItemId = backlogItemId;
     this.Category = category;
     this.ProductId = productId;
     this.Status = backlogItemStatus;
     this.StoryPoints = storyPoints;
     this.Summary = summary;
     this.TenantId = tenantId;
     this.Type = type;
 }
        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 AssignStoryPoints(StoryPoints storyPoints)
 {
     this.StoryPoints = storyPoints;
     DomainEventPublisher.Instance.Publish(
         new BacklogItemStoryPointsAssigned(this.TenantId, this.BacklogItemId, storyPoints));
 }
Exemple #8
0
        public BacklogItemStoryPointsAssigned(Tenants.TenantId tenantId, BacklogItemId backlogItemId, StoryPoints storyPoints)
        {
            this.TenantId     = tenantId;
            this.EventVersion = 1;
            this.OccurredOn   = DateTime.UtcNow;

            this.BacklogItemId = backlogItemId;
            this.StoryPoints   = storyPoints;
        }
 public void AssignStoryPoints(StoryPoints storyPoints)
 {
     this.StoryPoints = storyPoints;
     DomainEventPublisher.Instance.Publish(
         new BacklogItemStoryPointsAssigned(this.TenantId, this.BacklogItemId, storyPoints));
 }
Exemple #10
0
 public Estimate(string participantName, StoryPoints storyPoints)
 {
     _participantName = participantName;
     _storyPoints = storyPoints;
 }
Exemple #11
0
 public Estimate(string participantName, StoryPoints storyPoints)
 {
     _participantName = participantName;
     _storyPoints     = storyPoints;
 }
Exemple #12
0
 public StoryViewModel()
 {
     Points = StoryPoints.All();
 }