Esempio n. 1
0
        public void Query_UnitTest5()
        {
            IWorkItemStore      instance = GetTestInstance();
            const string        wiql     = "SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State], [System.Tags] FROM WorkItems";
            IWorkItemCollection actual   = instance.Query(wiql);

            Assert.IsNotNull(actual);
        }
Esempio n. 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>
 public Task <IReadOnlyList <IWorkItem> > WiqlQuery(string wiql, bool fullyPopulate)
 {
     return(AsyncOperation(() =>
     {
         IWorkItemStore workItemStore = WorkItemStore();
         IWorkItemCollection witCollection = workItemStore.Query(wiql);
         var result = new List <IWorkItem>();
         foreach (IWorkItem item in witCollection)
         {
             result.Add(item);
         }
         return (IReadOnlyList <IWorkItem>)result;
     }));
 }
 public IEnumerable <IWorkItem> Query(string wiql, bool dayPrecision = false)
 {
     QueryStringCallCount += 1;
     return(_innerWorkItemStore.Query(wiql, dayPrecision));
 }
Esempio n. 4
0
 public IWorkItemCollection Query(string wiql, bool dayPrecision = false)
 {
     QueryStringCallCount += 1;
     return(_innerWorkItemStore.Query(wiql, dayPrecision));
 }