public void WiqlQuery_UnitTest() { JsonWitAPI api = APIFactory.JsonWorkItemAPI; const string wiql = "SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State], [System.Tags] FROM WorkItems"; Task <IReadOnlyList <JsonWorkItem> > task = api.WiqlQuery(wiql, true); IReadOnlyList <JsonWorkItem> result = task.Result; Debug.WriteLine("WIQL Query returned {0} ItemDictionary", result.Count); Assert.IsNotNull(result); }
/// <summary> /// Wiqls the query. /// </summary> /// <param name="wiql">The wiql.</param> /// <param name="fullyPopulate">if set to <c>true</c> [fully populate].</param> /// <returns>Task<IReadOnlyList<IWorkItem>>.</returns> /// <exception cref="ToBeImplementedException"></exception> public async Task <IReadOnlyList <IWorkItem> > WiqlQuery(string wiql, bool fullyPopulate) { var result = await r_JsonAPI.WiqlQuery(wiql, fullyPopulate, WorkItemImpl.FromToken); return(result); }