public Team( TeamCode teamCode, TeamType teamType, TeamName teamName, TeamAbbreviatedName teamAbbreviatedName, string representativeName, string representativeEmailAddress, string telephoneNumber, string address, string coachName, string coachEmailAddress, string teamJpin ) { this.TeamCode = teamCode; this.TeamType = teamType; this.TeamName = teamName; this.TeamAbbreviatedName = teamAbbreviatedName; this.RepresentativeName = representativeName; this.RepresentativeEmailAddress = representativeEmailAddress; this.TelephoneNumber = telephoneNumber; this.Address = address; this.CoachName = coachName; this.CoachEmailAddress = coachEmailAddress; this.TeamJpin = teamJpin; }
/// <summary> /// 団体情報を変更します。 /// </summary> /// <param name="teamJpin">JPINの団体番号。</param> public void ChangeTeamData(UpdateTeamDto dto) { this.TeamName = new TeamName(dto.TeamName); this.TeamAbbreviatedName = TeamAbbreviatedName.Parse(dto.TeamAbbreviatedName); this.RepresentativeName = dto.RepresentativeName; this.RepresentativeEmailAddress = dto.RepresentativeEmailAddress; this.TelephoneNumber = dto.TelephoneNumber; this.Address = dto.Address; this.CoachName = dto.CoachName; this.CoachEmailAddress = dto.CoachEmailAddress; }