public void TeamProjectLocatorLoadsProjects() { var teamProjectCollectionConnector = new TeamProjectCollectionConnectorFactory().New(); var teamProjectServiceLocator = new ServiceLocatorFactory().New(teamProjectCollectionConnector.Connect("tfs.ges.ferlan.it", 8080, "DefaultCollection")); var projectLocator = new TeamProjectsLocatorFactory().New(teamProjectServiceLocator); var projects = projectLocator.LocateProjects(); Assert.IsTrue(projects.Any()); }
public void ApplicationGroupsLocatorLoadsGroups() { var teamProjectCollectionConnector = new TeamProjectCollectionConnectorFactory().New(); var teamProjectServiceLocator = new ServiceLocatorFactory().New(teamProjectCollectionConnector.Connect("tfs.ges.ferlan.it", 8080, "DefaultCollection")); var applicationGroupsLocator = new GroupsLocatorFactory().New(teamProjectServiceLocator); var projectLocator = new TeamProjectsLocatorFactory().New(teamProjectServiceLocator); var projects = projectLocator.LocateProjects(); foreach (var applicationGroups in projects.Select(teamProject => applicationGroupsLocator.LocateApplicationGroups(teamProject.ArtifactUri.AbsoluteUri))) { Assert.IsTrue(applicationGroups.Any()); } }