Exemple #1
0
        public void EnableDisableIterationPath_passingInNewPath_ShouldEnablePathAndThenDisablePath()
        {
            // arrange
            ProjectDetail     projectDetail    = TestConstants.TfsTeamProjectDetail;
            IIterationManager manager          = IterationManagerFactory.GetManager(projectDetail);
            string            newIterationName = GetRandomGuid();

            manager.AddNewIteration(newIterationName);

            manager.EnableIterationPath(TestConstants.TfsTeam, newIterationName, true);
            Assert.IsTrue(manager.IsIterationPathEnabled(TestConstants.TfsTeam, newIterationName), "Iteration path did not enable for team.");
            manager.DisableIterationPath(TestConstants.TfsTeam, newIterationName);
            Assert.IsFalse(manager.IsIterationPathEnabled(TestConstants.TfsTeam, newIterationName), "Iteration path did not disable for team.");
        }
Exemple #2
0
        public void IsIterationPathVisibleForIterationPlanning_passingInAnyPathAfterCreatingANewTeam_ShouldReturnFalse()
        {
            // arrange
            ProjectDetail     projectDetail = this.CreateProjectDetail();
            ITeamManager      teamManager   = TeamManagerFactory.GetManager(projectDetail);
            var               tfsTeamName   = GetRandomGuid() + "Team";
            ITfsTeam          tfsTeam       = teamManager.AddTeam(tfsTeamName);
            IIterationManager manager       = IterationManagerFactory.GetManager(projectDetail);
            bool              actual        = false;

            // act
            actual = manager.IsIterationPathEnabled(tfsTeam, GetRandomGuid());

            // assert
            Assert.IsFalse(actual);
        }
Exemple #3
0
        public void IsIterationPathVisibleForIterationPlanning_passingInAPathThatIsAssignedToATeamAfterItHasBeenCreated_ShouldReturnTrue()
        {
            // arrange
            ProjectDetail     projectDetail    = this.CreateProjectDetail();
            ITeamManager      teamManager      = TeamManagerFactory.GetManager(projectDetail);
            var               tfsTeamName      = GetRandomGuid() + "Team";
            ITfsTeam          tfsTeam          = teamManager.AddTeam(tfsTeamName);
            IIterationManager manager          = IterationManagerFactory.GetManager(projectDetail);
            string            newIterationName = GetRandomGuid();

            manager.AddNewIteration(newIterationName);
            bool actual = false;

            // act
            actual = manager.IsIterationPathEnabled(tfsTeam, newIterationName);

            // assert
            Assert.IsFalse(actual);
        }