Exemple #1
0
 /// <summary>
 /// 選手の新しいインスタンスを生成します。
 /// </summary>
 /// <param name="playerCode">登録番号。</param>
 /// <param name="playerFamilyName">姓。</param>
 /// <param name="playerFirstName">名。</param>
 /// <param name="playerFamilyNameKana">姓(カナ)。</param>
 /// <param name="playerFirstNameKana">名(カナ)。</param>
 /// <param name="playerJpin">JPIN。</param>
 /// <param name="category">カテゴリー。</param>
 /// <param name="gender">性別。</param>
 /// <param name="birthDate">誕生日。</param>
 /// <param name="telephoneNumber">電話番号。</param>
 public Player(
     int teamId,
     PlayerCode playerCode,
     PlayerFamilyName playerFamilyName,
     PlayerFirstName playerFirstName,
     PlayerFamilyNameKana playerFamilyNameKana,
     PlayerFirstNameKana playerFirstNameKana,
     string playerJpin,
     Category category,
     Gender gender,
     BirthDate birthDate,
     string telephoneNumber)
 {
     this.TeamId               = teamId;
     this.PlayerCode           = playerCode;
     this.PlayerFamilyName     = playerFamilyName;
     this.PlayerFirstName      = playerFirstName;
     this.PlayerFamilyNameKana = playerFamilyNameKana;
     this.PlayerFirstNameKana  = playerFirstNameKana;
     this.PlayerJpin           = playerJpin;
     this.Category             = category;
     this.Gender               = gender;
     this.BirthDate            = birthDate;
     this.TelephoneNumber      = telephoneNumber;
     this.PlayerName           = new PlayerName(this.PlayerFamilyName, this.PlayerFirstName);
     this.PlayerNameKana       = new PlayerNameKana(this.PlayerFamilyNameKana, this.PlayerFirstNameKana);
 }
Exemple #2
0
 /// <summary>
 /// 姓(カナ)と名(カナ)から氏名(カナ)のインスタンスを生成します。
 /// </summary>
 public PlayerNameKana(PlayerFamilyNameKana playerFamilyNameKana, PlayerFirstNameKana playerFirstNameKana)
 {
     this.Value = $"{playerFamilyNameKana.Value} {playerFirstNameKana.Value}";
 }