Ejemplo n.º 1
0
        public JsonPatchDocument Create(string twitchUsername, DevOpsWorkItem workItem)
        {
            var jsonPatchDocument = new JsonPatchDocument();

            jsonPatchDocument
            .AddTitle($"{twitchUsername} - {workItem.Title}")
            .AddAcceptanceCriteria(workItem.AcceptanceCriteria);

            if (workItem.Tags != null && workItem.Tags.Any())
            {
                jsonPatchDocument.AddTags(workItem.Tags);
            }

            return(jsonPatchDocument);
        }