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(); }
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); }
public void UpdateTeamAffiliation(Team newTeam) { this.TeamId = newTeam?.Id ?? Guid.Empty; this.affiliatedTeamName = newTeam?.Name ?? new TeamName("Unaffiliated"); }