Ejemplo n.º 1
0
 public static void CheckExpiredInsurance(Airline airline)
 {
     DateTime date = GameObject.GetInstance().GameTime;
     foreach (AirlineInsurance policy in airline.InsurancePolicies)
     {
         if (policy.InsuranceExpires < date)
         {
             airline.removeInsurance(policy);
         }
     }
 }