コード例 #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);
        }