コード例 #1
0
        public void Should_Player_Name_Equal_Player1()
        {
            SoccerTeamsManager.SoccerTeamsManager manager = new SoccerTeamsManager.SoccerTeamsManager();
            _mockTeam.ForEach(team => manager.AddTeam(team.Id, team.Name, team.Created, team.MainShirtColor, team.SecondaryShirtColor));
            _mockPlayer.ForEach(player => manager.AddPlayer(player.Id, player.TeamId, player.Name, player.BirthDate, player.SkillLevel, player.Salary));

            string name = manager.GetPlayerName(1);

            Assert.Equal("Player 1", name);
        }