public (DepartureDays arrivalDay, TimeSpan arrivalTime) TakeArrivalDate(DepartureDays departureDay)
        {
            var time = DepartureTime + TakeTimeInAir();

            if (time.Days > 0)
            {
                departureDay = departureDay.Next();
                time        -= new TimeSpan(time.Days, 0, 0, 0);
            }

            return(departureDay, time);
        }
Example #2
0
 private void GoToNextDay(ref DepartureDays nearestFlightDay, ref int daysUntilFlight)
 {
     nearestFlightDay = nearestFlightDay.Next();
     ++daysUntilFlight;
 }