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); }
/// <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> 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)); }
public IWorkItemCollection Query(string wiql, bool dayPrecision = false) { QueryStringCallCount += 1; return(_innerWorkItemStore.Query(wiql, dayPrecision)); }