Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void GoToNextDay(ref DepartureDays nearestFlightDay, ref int daysUntilFlight)
 {
     nearestFlightDay = nearestFlightDay.Next();
     ++daysUntilFlight;
 }