Exemplo n.º 1
0
        public void RepositoryIsReportedAsAccessibleToTeam()
        {
            var team         = AddTeam();
            var repoWithTeam = MakeRepo("Repo1");

            repoWithTeam.Teams = new[] { team };
            _repo.Create(repoWithTeam);
            var repoWithoutTeam = MakeRepo("Repo2");

            _repo.Create(repoWithoutTeam);

            Assert.AreEqual("Repo1", _repo.GetTeamRepositories(new[] { team.Id }).Single().Name);
        }