コード例 #1
0
 public CinemaCitizenFeeModel(int age)
 {
     if (age < 60)
     {
         calculator = new FeeCalculator(1000, 1000,
                                        1300, 1000, 1100);
     }
     else
     {
         calculator = new FeeCalculator(1000, 1000,
                                        1000, 1000, 1000);
     }
 }
コード例 #2
0
 public HandicapFeeModel(bool isMoreThan18Years)
 {
     if (isMoreThan18Years)
     {
         calculator = new FeeCalculator(1000, 1000,
                                        1000, 1000, 1000);
     }
     else
     {
         calculator = new FeeCalculator(900, 900,
                                        900, 900, 900);
     }
 }
コード例 #3
0
 public DefaultFeeModel(int age)
 {
     if (age < 70)
     {
         calculator = new FeeCalculator(1800, 1300,
                                        1800, 1300, 1100);
     }
     else
     {
         calculator = new FeeCalculator(1100, 1100,
                                        1100, 1100, 1100);
     }
 }
コード例 #4
0
 public StudentFeeModel(StudentType studentType)
 {
     if (studentType == StudentType.University ||
         studentType == StudentType.VocationalSchool)
     {
         calculator = new FeeCalculator(1500, 1300,
                                        1500, 1300, 1100);
     }
     else
     {
         calculator = new FeeCalculator(1000, 1000,
                                        1000, 1000, 1000);
     }
 }