예제 #1
0
 public void Arrange()
 {
     _repo = new TeamRepository();
     _team = new Team(new List <Developer>(), "Blue", 1);
     _repo.AddTeamToDirectory(_team);
     _team = new Team(new List <Developer>(), "Red", 2);
     _repo.AddTeamToDirectory(_team);
     _team = new Team(new List <Developer>(), "Green", 3);
     _repo.AddTeamToDirectory(_team);
 }
예제 #2
0
        public void AddTeamToDirector()
        {
            Team           team           = new Team();
            TeamRepository teamRepository = new TeamRepository();
            bool           wasAdded       = teamRepository.AddTeamToDirectory(team);

            Assert.IsTrue(wasAdded);
        }