示例#1
0
        private Solution CreateSolution()
        {
            Solution targetSolution;
            var      description = new StringBuilder();

            description
            .AppendLine(
                string.Format("## Solution generated automatically by {0} at {1} ##",
                              CurrentCrmConnection.Username,
                              DateTime.Now.ToString()));
            if (WorkSolutions != null)
            {
                foreach (var item in WorkSolutions)
                {
                    description.AppendLine($"-{item.Jira}");
                }
            }
            var solution = CurrentSolutionManager.CreateSolution(NewDisplayName, UniqueName, SelectedPublisher, description.ToString());

            CurrentSolutionManager.UpdatedJustCreatedAggregatedSolution(CurrentAggregatedSolution.Id, UniqueName, NewDisplayName);

            targetSolution = solution;
            return(targetSolution);
        }