Beispiel #1
0
        private static void EditWorkItem(WorkItem workItem)
        {
            Console.WriteLine("Editing work item...");

            workItem.Edit("Work item title here", "Work item description here");
            workItem.Print();

            Console.WriteLine();
        }
Beispiel #2
0
        private static void SetItemState(WorkItem workItem, string state)
        {
            Console.WriteLine("Setting work item state to {0}...", state);

            workItem.SetState(state);
            workItem.Print();

            Console.WriteLine();
        }
Beispiel #3
0
        private static void DeleteWorkItem(WorkItem workItem)
        {
            Console.WriteLine("Deleting work item...");

            workItem.Delete();
            workItem.Print();

            Console.WriteLine();
        }
Beispiel #4
0
 internal static WorkItem Create()
 {
     var wi = new WorkItem();
     wi.Id = -1;
     wi.State = "Proposed";
     return wi;
 }