public void Add(IVolarisPassanger passanger)
 {
     Add(new List <IVolarisPassanger>()
     {
         passanger
     });
 }
Пример #2
0
        private string GetPassangerType(IVolarisPassanger pax)
        {
            if (pax != null)
            {
                if (pax is VolarisAdultPassanger)
                {
                    return("ADT");
                }

                if (pax is VolarisChildPassanger)
                {
                    return("CNN");
                }

                if (pax is VolarisInfantPassanger)
                {
                    return("INF");
                }
            }
            return(string.Empty);
        }
 /// <summary>
 /// Removes the specified passanger.
 /// </summary>
 /// <param name="passanger">The passanger.</param>
 public void Remove(IVolarisPassanger passanger)
 {
     _passangers.Remove(passanger);
 }