Exemplo n.º 1
0
        TaxiPriceCalculatorService AddJamFee()
        {
            var minutes = TrafficJamFeeCalculator.GetJamMinutes(_trip.SpeedsPerSecond);

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

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