Exemplo n.º 1
0
        public async Task HandleAsync(AssignNfrToSprint command)
        {
            var issue = await nfrRepository.GetAsync(command.IssueId);

            var originalVersion = issue.Version;
            await issue.AssignToSprint(command.SprintId, sprintSearcher);

            await nfrRepository.Update(issue, originalVersion);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> AssignToSprint([FromRoute] Guid projectId, [FromRoute] Guid nfrId, [FromBody] AssignNfrToSprint command)
        {
            command.ProjectId = projectId;
            command.IssueId   = nfrId;
            await commandQueryBus.SendAsync(command);

            return(Ok());
        }