示例#1
0
        public void Calculate(IPassengerService passengers, IFlightService flightService)
        {
            passengers.Calculate(flightService);
            flightService.ProfitSurplus = flightService.ProfitFromFlight - flightService.CostOfFlight;

            flightService.CanFlightProceed = CurrentRule.CanFlightProceed(flightService, passengers);
        }