public void CL_WorkItemTracking_WorkItems_GetWorkItemsByIDs_Success() { // arrange WorkItems workItems = new WorkItems(_configuration); var split = _configuration.WorkItemIds.Split(','); var ids = new List <int>(); foreach (string item in split) { ids.Add(Convert.ToInt32(item)); } // act var result = workItems.GetWorkItemsByIDs(ids); //assert Assert.IsNotNull(result); }
public void WorkItemTracking_WorkItems_GetWorkItemsByIDs_Success() { // arrange WorkItems request = new WorkItems(_configuration); // act GetWorkItemsResponse.WorkItems response = request.GetWorkItemsByIDs(_configuration.WorkItemIds); // assert if (response.HttpStatusCode == HttpStatusCode.NotFound) { Assert.Inconclusive("work items '" + _configuration.WorkItemIds + "' not found"); } else { Assert.AreEqual(HttpStatusCode.OK, response.HttpStatusCode); } request = null; }