Beispiel #1
0
        public override void Create()
        {
            BugDTO bug = new BugDTO
            {
                Name      = this.EntityName,
                ProjectID = this.ProjectId
            };

            if (!String.IsNullOrEmpty(this.UserStory) || IsUserStoryIdSet)
            {
                bug.UserStoryID = this.UserStoryId;
            }

            if (IsDescriptionSet)
            {
                bug.Description = this.Description;
            }

            if (!String.IsNullOrEmpty(this.State))
            {
                bug.EntityStateID = this.StateId;
            }

            int taskId = BugService.Create(bug);

            foreach (TargetProcessUser user in this.UsersToAssign)
            {
                BugService.AssignUser(taskId, user.GetId());
            }
        }