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

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

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