Esempio n. 1
0
        public async Task <RetrospectiveStatus> GetRetrospectiveStatus(Retrospective retrospective, CancellationToken cancellationToken)
        {
            if (retrospective == null)
            {
                throw new ArgumentNullException(nameof(retrospective));
            }

            var workflowStatus      = RetrospectiveWorkflowStatus.FromDomainWorkflowData(retrospective.WorkflowData);
            var retrospectiveStatus = new RetrospectiveStatus(retrospective.UrlId.StringId, retrospective.Title, retrospective.CurrentStage, workflowStatus, retrospective.Options.MaximumNumberOfVotes);

            retrospectiveStatus.Lanes.AddRange(await this._returnDbContext.NoteLanes.AsNoTracking().ProjectTo <RetrospectiveLane>(this._mapper.ConfigurationProvider).ToListAsync(cancellationToken));

            return(retrospectiveStatus);
        }
Esempio n. 2
0
 public RetrospectiveStatus(string retroId, string title, RetrospectiveStage retrospectiveStage, RetrospectiveWorkflowStatus workflowStatus, int votesPerLane)
 {
     this.RetroId        = retroId;
     this.Title          = title;
     this.Stage          = retrospectiveStage;
     this.WorkflowStatus = workflowStatus;
     this.VotesPerLane   = votesPerLane;
 }