public void ProjectsAndTeams_ProjectCollections_GetProjectCollections_Success() { // arrange ProjectCollections projectCollections = new ProjectCollections(_configuration); // act IEnumerable <TeamProjectCollectionReference> results = projectCollections.GetProjectCollections(); // assert Assert.IsNotNull(results); }
public void ProjectsAndTeams_ProjectCollections_GetProcess_Success() { // arrange ProjectCollections request = new ProjectCollections(_configuration); // act var response = request.GetProjectCollection(_configuration.CollectionId); // assert Assert.AreEqual(HttpStatusCode.OK, response.HttpStatusCode); request = null; }
public void ProjectsAndTeams_ProjectCollections_GetProjectCollection_Success() { // arrange ProjectCollections projectCollections = new ProjectCollections(_configuration); // act try { TeamProjectCollectionReference result = projectCollections.GetProjectCollection(_configuration.CollectionId); // assert Assert.AreEqual(result.Id, new System.Guid(_configuration.CollectionId)); } catch (System.AggregateException) { Assert.Inconclusive("project collection'" + _configuration.Project + "' not found"); } }