Exemplo n.º 1
0
 private void UpdateWorkItems(IEnumerable <TfsWorkItem> workItemsToChange)
 {
     foreach (var tfsWorkItem in workItemsToChange)
     {
         var   itemColor   = GetWorkItemTypeColor(tfsWorkItem.WorkItemTypeName);
         var   converter   = new Converter();
         var   description = converter.Convert(tfsWorkItem.Description);
         Regex _htmlRegex  = new Regex("<.*?>", RegexOptions.Compiled);
         _trelloClient.AddOrUpdateCard(tfsWorkItem.State, tfsWorkItem.Title, _htmlRegex.Replace(description, string.Empty), tfsWorkItem.AssignedTo, tfsWorkItem.Id, itemColor);
     }
 }
Exemplo n.º 2
0
 public void OnInitializeAddOrUpdateTask()
 {
     SetupGetAllWorkItems(Task);
     _tfsTrelloIntegration.Initialize();
     A.CallTo(() => _trelloClientFake.AddOrUpdateCard(ListName, MyTitle, Description, AssignedTo, Id, TaskColor)).MustHaveHappened();
 }