Exemplo n.º 1
0
 public int getTotal(Registration r)
 {
     if (r.getCourseList().Count <= 5)
     {
         if (r.getTotal() + r.getExtraFeeAmount() > 20000)
         {
             return(r.getDiscountStrategy() == null ? 0 : 20000);
         }
         else
         {
             return(0);
         }
     }
     else
     {
         throw new FreedomFighterCourseLimitExceeded();
     }
 }
 public int getTotal(Registration reg)
 {
     return(reg.getDiscountStrategy() == null ? 0 : (int)(reg.getTotal() * 0.6));
 }