public void GetAllIterations_UnitTest()
        {
            JsonWitAPI   api     = APIFactory.JsonWorkItemAPI;
            const string project = "RestPlaypen";

            Task <IReadOnlyList <JsonIteration> > task   = api.GetAllIterations(project, 999);
            IReadOnlyList <JsonIteration>         result = task.Result;

            Assert.IsNotNull(result);
        }
Beispiel #2
0
        /// <summary>
        /// Gets the iterations.
        /// </summary>
        /// <param name="project">The project.</param>
        /// <param name="depth">The depth.</param>
        /// <returns>Task&lt;IReadOnlyList&lt;IIteration&gt;&gt;.</returns>
        public async Task <IReadOnlyList <IIteration> > GetIterations(string project, int depth)
        {
            var result = await r_JsonAPI.GetAllIterations(project, depth, IterationImpl.FromToken);

            return(result);
        }