public Sprint ScheduleSprint( SprintId newSprintId, String name, String goals, DateTime begins, DateTime ends) { Sprint sprint = new Sprint( this.TenantId, this.ProductId, newSprintId, name, goals, begins, ends); DomainEventPublisher .Instance .Publish(new ProductSprintScheduled( sprint.TenantId, sprint.ProductId, sprint.SprintId, sprint.Name, sprint.Goals, sprint.Begins, sprint.Ends)); return(sprint); }
public ServiceModels.SprintTeamMember Map() { return(new ServiceModels.SprintTeamMember { SprintId = SprintId.ToString(), ProjectTeamMemberId = ProjectTeamMemberId.ToString(), UserId = ProjectTeamMember.UserId }); }
protected override void ValidateCore() { if (SprintId.IsBlankIdentity()) { AddError("", "Idenitity is invalid."); } if (TaskId.IsBlankIdentity()) { AddError("", "Idenitity is invalid."); } }
public override int GetHashCode() { unchecked { var hashCode = ProjectGroupId.GetHashCode(); hashCode = (hashCode * 397) ^ ProjectId.GetHashCode(); hashCode = (hashCode * 397) ^ SprintId.GetHashCode(); hashCode = (hashCode * 397) ^ ActivityId.GetHashCode(); hashCode = (hashCode * 397) ^ AssigneeId.GetHashCode(); hashCode = (hashCode * 397) ^ LoggedTimeId.GetHashCode(); return(hashCode); } }
public bool Equals(ProjectGroupLogsDto other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ProjectGroupId.Equals(other.ProjectGroupId) && ProjectId.Equals(other.ProjectId) && SprintId.Equals(other.SprintId) && ActivityId.Equals(other.ActivityId) && AssigneeId.Equals(other.AssigneeId) && LoggedTimeId.Equals(other.LoggedTimeId)); }
public ProductSprintScheduled( TenantId tenantId, ProductId productId, SprintId sprintId, string name, string goals, DateTime starts, DateTime ends) { Ends = ends; EventVersion = 1; Goals = goals; Name = name; OccurredOn = DateTime.Now; ProductId = productId; SprintId = sprintId; Starts = starts; TenantId = tenantId; }
public ProductSprintScheduled( TenantId tenantId, ProductId productId, SprintId sprintId, string name, string goals, DateTime starts, DateTime ends) { this.Ends = ends; this.EventVersion = 1; this.Goals = goals; this.Name = name; this.OccurredOn = DateTime.Now; this.ProductId = productId; this.SprintId = sprintId; this.Starts = starts; this.TenantId = tenantId; }
public ServiceModels.UserStory Map() { var userStory = new ServiceModels.UserStory(Title, Description, ProjectId.ToString()) { UserStoryAcceptanceTests = UserStoryAcceptanceTests.Select(m => m.Map()).ToList(), UserStoryTasks = UserStoryTasks.Select(m => m.Map()).ToList(), Id = Id.ToString(), StoryPoints = StoryPoints, Priority = Priority, MarketValue = MarketValue }; if (SprintId != null) { userStory.SprintId = SprintId.ToString(); userStory.SprintTitle = Sprint.Title; } return(userStory); }
public Sprint( TenantId tenantId, ProductId productId, SprintId sprintId, string name, string goals, DateTime begins, DateTime ends) { if (ends.Ticks < begins.Ticks) { throw new InvalidOperationException("Sprint must not end before it begins."); } this.BacklogItems = new HashSet<CommittedBacklogItem>(); this.Begins = begins; this.Goals = goals; this.Ends = ends; this.Name = name; this.ProductId = productId; this.SprintId = sprintId; this.TenantId = tenantId; }
protected Event_message Task_is_removed_from_sprint(SprintId sprintId, TaskId taskId) { return(new Event_message(sprintId.Value, new Task_is_removed_from_sprint(sprintId, taskId))); }
protected Event_message Task_is_committed_to_sprint(SprintId sprintId, TaskId taskId) { return(new Event_message(sprintId.Value, new Task_is_committed_to_sprint(sprintId, taskId))); }
protected Remove_task_from_sprint Remove_task_from_sprint(SprintId sprintId, TaskId taskId) { return(new Remove_task_from_sprint(sprintId, taskId)); }
protected Start_sprint Start_sprint(SprintId sprintId) { return(new Start_sprint(sprintId)); }
public Sprint_is_started(SprintId sprintId) { SprintId = sprintId; }
public Sprint_could_not_start(SprintId sprintId, Reason reason) { SprintId = sprintId; Reason = reason; }
protected Event_message Sprint_is_closed(SprintId sprintId) { return(new Event_message(sprintId.Value, new Sprint_is_closed(sprintId))); }
public Task_is_removed_from_sprint(SprintId sprintId, TaskId taskId) { SprintId = sprintId; TaskId = taskId; }
public Remove_task_from_sprint(SprintId sprintId, TaskId taskId) { SprintId = sprintId; TaskId = taskId; }
public Sprint_is_closed(SprintId sprintId) { SprintId = sprintId; }
public Task_is_committed_to_sprint(SprintId sprintId, TaskId taskId) { SprintId = sprintId; TaskId = taskId; }
public Sprint_is_planned(ProjectId projectId, SprintId sprintId) { ProjectId = projectId; SprintId = sprintId; }
protected Event_message Sprint_is_planned(ProjectId projectId, SprintId sprintId) { return(new Event_message(sprintId.Value, new Sprint_is_planned(projectId, sprintId))); }
protected Event_message Sprint_could_not_start(SprintId sprintId, Reason reason) { return(new Event_message(sprintId.Value, new Sprint_could_not_start(sprintId, reason))); }
public Sprint ScheduleSprint( SprintId newSprintId, String name, String goals, DateTime begins, DateTime ends) { Sprint sprint = new Sprint( this.TenantId, this.ProductId, newSprintId, name, goals, begins, ends); DomainEventPublisher .Instance .Publish(new ProductSprintScheduled( sprint.TenantId, sprint.ProductId, sprint.SprintId, sprint.Name, sprint.Goals, sprint.Begins, sprint.Ends)); return sprint; }
protected void No_tasks_committed_to_the_sprint(SprintId sprint1) { }
public Start_sprint(SprintId sprintId) { SprintId = sprintId; }