Exemplo n.º 1
0
 public Player(Name name, DateOfBirth dateOfBirth, PlayerPosition position,
               PlayerStatus status, Guid id) : base(name, dateOfBirth, id)
 {
     this.Position           = position;
     this.Status             = status;
     this.TeamId             = Guid.Empty;
     this.affiliatedTeamName = new TeamName("Unaffiliated");
     this.aggregatedEvents   = new AggregatedPlayerEvents();
     this.aggregatedStats    = new AggregatedPlayerStats();
 }
Exemplo n.º 2
0
 public Team(TeamName name, ArenaName arenaName, EmailAddress email)
 {
     this.Id             = Guid.NewGuid();
     this.events         = new AggregatedTeamEvents(this.Id);
     this.stats          = new AggregatedTeamStats(this.Id);
     this.Name           = name;
     this.playerIds      = new List <Guid>();
     this.ArenaName      = arenaName;
     this.Email          = email;
     this.matchSchedules = new TeamMatchSchedule(this.Id);
 }
Exemplo n.º 3
0
 public void UpdateTeamAffiliation(Team newTeam)
 {
     this.TeamId             = newTeam?.Id ?? Guid.Empty;
     this.affiliatedTeamName = newTeam?.Name ?? new TeamName("Unaffiliated");
 }