예제 #1
0
        public void GetWorkItem_UnitTest5()
        {
            IWorkItemStore instance = GetTestInstance();
            IWorkItem      actual   = instance.GetWorkItem(194);

            Assert.IsNotNull(actual);
        }
예제 #2
0
        public void GetWorkItem_UnitTest4()
        {
            IWorkItemStore instance = GetTestInstance();
            IWorkItem      actual   = instance.GetWorkItem(new Uri(VSOClientManager.VsoCollection), 0);

            Assert.IsNotNull(actual);
        }
예제 #3
0
        public void GetWorkItem_UnitTest2()
        {
            IWorkItemStore   instance    = GetTestInstance();
            CredentialsStore credentials = CredentialsProvider.Read(@"..\..\..\RestCredentials.xml");
            IWorkItem        actual      = instance.GetWorkItem(new Uri(credentials.VsoCollection));

            Assert.IsNotNull(actual);
        }
예제 #4
0
 /// <summary>
 ///     Gets the work items.
 /// </summary>
 /// <param name="ids">The ids.</param>
 /// <returns>Task&lt;IList&lt;JsonWorkItem&gt;&gt;.</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;
     }));
 }