Exemple #1
0
        TaxiPriceCalculatorService AddJamFee()
        {
            var minutes = TrafficJamFeeCalculator.GetJamMinutes(_trip.SpeedsPerSecond);

            TotalFee += minutes * Config.TRAFFICE_JAM_FEE;
            return(this);
        }
Exemple #2
0
        TaxiPriceCalculatorService AddNightFee()
        {
            var distance = TrafficJamFeeCalculator.GetNightDriveDistance();

            TotalFee += distance * Config.NIGHT_DRIVE_FEE;
            return(this);
        }