Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
 public DefaultFeeModel(int age)
 {
     if (age < 70)
     {
         calculator = new FeeCalculator(1800, 1300,
                                        1800, 1300, 1100);
     }
     else
     {
         calculator = new FeeCalculator(1100, 1100,
                                        1100, 1100, 1100);
     }
 }
 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);
     }
 }