public void GetWorkItem_UnitTest5() { IWorkItemStore instance = GetTestInstance(); IWorkItem actual = instance.GetWorkItem(194); Assert.IsNotNull(actual); }
public void GetWorkItem_UnitTest4() { IWorkItemStore instance = GetTestInstance(); IWorkItem actual = instance.GetWorkItem(new Uri(VSOClientManager.VsoCollection), 0); Assert.IsNotNull(actual); }
public void GetWorkItem_UnitTest2() { IWorkItemStore instance = GetTestInstance(); CredentialsStore credentials = CredentialsProvider.Read(@"..\..\..\RestCredentials.xml"); IWorkItem actual = instance.GetWorkItem(new Uri(credentials.VsoCollection)); Assert.IsNotNull(actual); }
/// <summary> /// Gets the work items. /// </summary> /// <param name="ids">The ids.</param> /// <returns>Task<IList<JsonWorkItem>>.</returns> public Task <IReadOnlyList <IWorkItem> > GetWorkItems(IEnumerable <int> ids) { return(AsyncOperation(() => { IWorkItemStore workItemStore = WorkItemStore(); var result = (IReadOnlyList <IWorkItem>)ids.Select(id => workItemStore.GetWorkItem(id)).ToList(); return result; })); }