private static bool TryGetWorkItemType(List <WorkItemTypeModel> types, string typeName, out WorkItemTypeModel type)
        {
            type = types.FirstOrDefault(x => x.Name.Equals(typeName, StringComparison.OrdinalIgnoreCase));

            return(type != null);
        }
        private static ProcessWorkItemType CreateWorkItemType(VssConnection connection, Process process, WorkItemTypeModel workItemType)
        {
            var model = new CreateProcessWorkItemTypeRequest()
            {
                Name         = workItemType.Name,
                InheritsFrom = workItemType.Id,
                Color        = workItemType.Color,
                Icon         = workItemType.Icon,
                IsDisabled   = workItemType.IsDisabled ?? false
            };

            WorkItemTrackingProcessHttpClient workClient = connection.GetClient <WorkItemTrackingProcessHttpClient>();

            return(workClient.CreateProcessWorkItemTypeAsync(model, process.Id).Result);
        }