Exemplo n.º 1
0
 public Team Create(TeamDto teamDto)
 {
     var team = new Team();
     team.TeamId = _teamId;
     _teamId++;
     team.Name = teamDto.Name;
     return team;
 }
Exemplo n.º 2
0
 public void CreateTeam()
 {
     var teamService = new TeamService(_mockTeamRepository);
     var teamDto = new TeamDto();
     teamDto.Name = "team 1";
     var team =  teamService.Create(teamDto);
     Assert.That(team.TeamId, !Is.Null);
     Assert.That(team.Name, Is.EqualTo("team 1"));
 }