Exemplo n.º 1
0
  // should be private, but public because of unit test visibility
  public long getTotalFeeWeekends(Customer customer) throws Exception {

    // get price rate
    ParkingPriceRate parkingPriceRateWeekends = getParkingPriceRate(customer, false);

    return weekends.size() * parkingPriceRateWeekends.getFee();
  }
Exemplo n.º 2
0
  // should be private, but public because of unit test visibility
  public long getTotalFeeWeekdays(Customer customer) throws Exception {

    // get price rate
    ParkingPriceRate parkingPriceRateWeekdays = getParkingPriceRate(customer, true);

    if (totalHours > 0) {
      return (totalHours - CONSESSION) * parkingPriceRateWeekdays.getFee();
    }

    return 0;
  }