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;
 }
예제 #3
0
        public void TestCreate()
        {
            TenantId tenantId = new TenantId("T-12345");
            Teams.Model.Team team = new Teams.Model.Team(tenantId, "Identity and Access Management");

            Assert.AreEqual("Identity and Access Management", team.Name);
        }
 public TaskRenamed(TenantId tenantId, BacklogItemId backlogItemId, TaskId taskId, string name)
 {
     this.TenantId = tenantId;
     this.BacklogItemId = backlogItemId;
     this.TaskId = taskId;
     this.Name = name;
 }
 public ScheduledBacklogItem(TenantId tenantId, ReleaseId releaseId, BacklogItemId backlogItemId, int ordering = 0)
 {
     this.TenantId = tenantId;
     this.ReleaseId = releaseId;
     this.BacklogItemId = backlogItemId;
     this.Ordering = ordering;
 }
예제 #6
0
        public Team(TenantId tenantId, string name, ProductOwner productOwner)
            : this(tenantId, name)
        {
            AssertionConcern.NotNull(productOwner, "The productOwner must be provided.");
            AssertionConcern.Equals(tenantId, productOwner.TenantId, "The productOwner must be of the same tenant.");

            this.ProductOwner = productOwner;
        }
        public TaskRemoved(TenantId tenantId, BacklogItemId backlogItemId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;

            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 BacklogItemUnscheduled(TenantId tenantId, BacklogItemId backlogItemId, ReleaseId unscheduledReleaseId)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.UnscheduledReleaseId = unscheduledReleaseId;

            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;
        }
        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 ProductDiscussionInitiated(TenantId tenantId, ProductId productId, ProductDiscussion productDiscussion)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.ProductDiscussion = productDiscussion;

            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 BacklogItemCategoryChanged(TenantId tenantId, BacklogItemId backlogItemId, string category)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.Category = category;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        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 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;
        }
예제 #18
0
        public Team(TenantId tenantId, string name)
        {
            AssertionConcern.NotNull(tenantId, "The tenant id must be provided.");
            AssertionConcern.NotEmpty(name, "The name must be provided.");
            AssertionConcern.Length(name, 100, "The name must be 100 characters or less.");

            this.TenantId = tenantId;
            this.Name = name;
            _teamMembers = new HashSet<TeamMember>();
        }
        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 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 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 BacklogItemStatusChanged(TenantId tenantId, BacklogItemId backlogItemId,
            BacklogItemStatus backlogItemStatus)
        {
            this.TenantId = tenantId;
            this.BacklogItemId = backlogItemId;
            this.BacklogItemStatus = backlogItemStatus;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public void CommitBacklogItemToSprint(CommitBacklogItemToSprintCommand command)
        {
            TenantId tenantId = new TenantId(command.TenantId);
            Sprint sprint = this._sprintRepository.Get(tenantId, new SprintId(command.SprintId));
            BacklogItem backlogItem = this._backlogItemRepository.Get(tenantId, new BacklogItemId(command.BacklogItemId));

            sprint.Commit(backlogItem);

            this._sprintRepository.Save(sprint);
        }
        public EstimationLogEntry(TenantId tenantId, TaskId taskId, DateTime date, int hoursRemaining)
        {
            AssertionConcern.NotNull(tenantId, "The tenant id must be provided.");
            AssertionConcern.NotNull(taskId, "The task id must be provided.");

            this.TenantId = tenantId;
            this.TaskId = taskId;
            this.Date = date;
            this.HoursRemaining = hoursRemaining;
        }
        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 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 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;
        }
예제 #28
0
        public Release(TenantId tenantId, ProductId productId, ReleaseId releaseId, string name, string description, DateTime begins, DateTime ends)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.ReleaseId = releaseId;
            this.Name = name;
            this.Description = description;
            this.Begins = begins;
            this.Ends = ends;

            _backlogItems = new HashSet<ScheduledBacklogItem>();
        }
        public ProductCreated(TenantId tenantId, ProductId productId, ProductOwnerId productOwnerId, string name,
            string description, DiscussionAvailability availability)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.ProductOwnerId = productOwnerId;
            this.Name = name;
            this.Description = description;
            this.Availability = availability;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }
        public ProductDiscussionRequested(TenantId tenantId, ProductId productId, ProductOwnerId productOwnerId,
            string name, string description, bool requestingDiscussion)
        {
            this.TenantId = tenantId;
            this.ProductId = productId;
            this.ProductOwnerId = productOwnerId;
            this.Name = name;
            this.Description = description;
            this.RequestingDiscussion = requestingDiscussion;

            this.EventVersion = 1;
            this.OccurredOn = DateTime.Now;
        }