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);
        }
Exemple #2
0
        /// <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&lt;IReadOnlyList&lt;IWorkItem&gt;&gt;.</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);
        }