예제 #1
0
        public TrechoAereoComEscala(ITrechoAereo trechoInicial, ITrechoAereo trechoFinal)
        {
            if (trechoInicial.Destino != trechoFinal.Origem)
            {
                throw new ArgumentException();
            }

            _trechoInicial = trechoInicial;
            _trechoFinal   = trechoFinal;
        }
예제 #2
0
 public TrechoAereoComConexao(ITrechoAereo trechoInicial, ITrechoAereo trechoFinal, int tarifa)
     : base(trechoInicial, trechoFinal)
 {
     _tarifa = tarifa;
 }