Beispiel #1
0
 public OtfsBacklogItem(OtfsProjectId projectId, OtfsBacklogItemId backlogItemId, string title, string assignedTo, DateTime dataAtualizacao, OtfsBacklogItemState state = OtfsBacklogItemState.New  )
 {
     this.BacklogItemId = backlogItemId;
     this.AssignedTo = assignedTo;
     this.ProjectId = projectId;
     this.Title = title;
     this.State = state;
     this.DataAtualizacao = dataAtualizacao;
 }
        public OtfsBacklogItem ConcluirBackLogItemParaCompilacao(OtfsBacklogItemId backlogItemId, string iteration)
        {
            var backlogItem = _otfsBacklogItemRepository.Localizar(backlogItemId);
            var interationPath = _otfsIterationRepository.PorIteracao(backlogItem.ProjectId, iteration);

            backlogItem.AlterarStatusParaDone();
            backlogItem.Comitar(interationPath);

            _otfsBacklogItemRepository.Atualizar(backlogItem);

            return backlogItem;
        }
        public OtfsBacklogItem RejeitarBackLogItem(OtfsBacklogItemId backlogItemId, string iteration, string motivo)
        {
            var backlogItem = _otfsBacklogItemRepository.Localizar(backlogItemId);
            var interationPath = _otfsIterationRepository.PorIteracao(backlogItem.ProjectId, iteration);

            backlogItem.MarcarComoRejeitado(motivo);
            backlogItem.Comitar(interationPath);

            _otfsBacklogItemRepository.Atualizar(backlogItem);

            return backlogItem;
        }
        public OtfsBacklogItem AprovarBackLogItemParaCompilacao(OtfsBacklogItemId backlogItemId, string iteration)
        {
            var backlogItem = _otfsBacklogItemRepository.Localizar(backlogItemId);
            var interationPath = _otfsIterationRepository.PorIteracao(backlogItem.ProjectId, iteration);

            backlogItem.MarcarComoAprovado("Tarefa Aprovado em ambiente de Aceitação");
            backlogItem.Comitar(interationPath);

            _otfsBacklogItemRepository.Atualizar(backlogItem);

            return backlogItem;
        }
 public OtfsBacklogItem Localizar(OtfsBacklogItemId backlogItemId)
 {
     var item = this.Context.TeamProjectCollection.GetService<WorkItemStore>().GetWorkItem(backlogItemId.Id);
     return WorkItenFactory<OtfsBacklogItem>.Build(item);
 }