Exemple #1
0
 public Season(
     string name,
     DateTime fromDate,
     DateTime toDate,
     DateTime registrationFromDate,
     TeamRegistrationFee teamRegistrationFee,
     PlayerRegistrationFee playerRegistrationFee,
     PlayerTradeFee playerTradeFee
     )
 {
     if (fromDate.Date > toDate.Date)
     {
         throw new ArgumentException("年度開始日は年度終了日より前の日付を設定してください。", "年度開始日");
     }
     if (registrationFromDate.Date > fromDate.Date)
     {
         throw new ArgumentException("年度登録受付開始日は年度開始日より前の日付を設定してください。", "年度登録受付開始日");
     }
     this.Name                  = name;
     this.FromDate              = fromDate.Date;
     this.ToDate                = toDate.Date;
     this.RegistrationFromDate  = registrationFromDate.Date;
     this.TeamRegistrationFee   = teamRegistrationFee;
     this.PlayerRegistrationFee = playerRegistrationFee;
     this.PlayerTradeFee        = playerTradeFee;
 }
Exemple #2
0
 /// <summary>
 /// 年度を更新します。
 /// </summary>
 /// <param name="fromDate">年度開始日</param>
 /// <param name="toDate">年度終了日</param>
 /// <param name="registrationFromDate">年度登録受付開始日</param>
 /// <param name="teamRegistrationFee">団体登録料</param>
 /// <param name="playerRegistrationFee">選手登録料</param>
 /// <param name="playerTradeFee">選手移籍料</param>
 public void Change(
     DateTime fromDate,
     DateTime toDate,
     DateTime registrationFromDate,
     TeamRegistrationFee teamRegistrationFee,
     PlayerRegistrationFee playerRegistrationFee,
     PlayerTradeFee playerTradeFee)
 {
     this.FromDate              = fromDate;
     this.ToDate                = toDate;
     this.RegistrationFromDate  = registrationFromDate;
     this.TeamRegistrationFee   = teamRegistrationFee;
     this.PlayerRegistrationFee = playerRegistrationFee;
     this.PlayerTradeFee        = playerTradeFee;
 }