public SmartForTwoService(ISmartForTwo smartForTwo, IAirplane airplane, ITerminalService terminalService, ITerminal terminal)
 {
     _smartForTwo     = smartForTwo;
     _terminalService = terminalService;
     _airplane        = airplane;
     _terminal        = terminal;
 }
Exemplo n.º 2
0
        public string LocalizarSmartForTwo(ISmartForTwo smartForTwo)
        {
            var ehAeroporto         = smartForTwo.Localizacao == BibliotecaLocalizacao.AEROPORTO;
            var situacaoSmartForTwo = ehAeroporto ? smartForTwo.SmartForTwoIndo : smartForTwo.SmartForTwoVoltando;

            return(MontarFrase(ehAeroporto, situacaoSmartForTwo));
        }
Exemplo n.º 3
0
        public void PrefacioJogo(List <Passageiro> tripulantes, ISmartForTwo smartForTwo)
        {
            var localizacaoAtual = builderTexto.LocalizarPassageiros(tripulantes);

            localizacaoAtual += builderTexto.LocalizarSmartForTwo(smartForTwo);

            MostrarMensagem(string.Format("{0}{1}{2}", Biblioteca.CABECALHO, localizacaoAtual, Biblioteca.OPCOES));
        }
Exemplo n.º 4
0
 public AirplaneServiceTest()
 {
     _terminal           = new Terminal();
     _airplane           = new Airplane();
     _smartForTwo        = new SmartForTwo();
     _smartForTwoService = Substitute.For <ISmartForTwoService>();
     _airplaneService    = new AirplaneService(_terminal, _airplane, _smartForTwoService, _smartForTwo);
 }
 public SmartForTwoServiceTest()
 {
     _terminal           = new Terminal();
     _airplane           = new Airplane();
     _smartForTwo        = new SmartForTwo();
     _terminalService    = Substitute.For <ITerminalService>();
     _smartForTwoService = new SmartForTwoService(_smartForTwo, _airplane, _terminalService, _terminal);
 }
Exemplo n.º 6
0
 public AirplaneService
 (
     ITerminal terminal,
     IAirplane airplane,
     ISmartForTwoService smartForTwoService,
     ISmartForTwo smartForTwo)
 {
     _terminal           = terminal;
     _airplane           = airplane;
     _smartForTwoService = smartForTwoService;
     _smartForTwo        = smartForTwo;
 }
Exemplo n.º 7
0
 public Acoes(IInstrucoes instrucoes,
              IBuilderPassageiros builderPassageiros,
              ISmartForTwo smartForTwo,
              IBuilderTexto builderTexto,
              IValidacoesDados validacoesDados)
 {
     this.instrucoes         = instrucoes;
     this.builderPassageiros = builderPassageiros;
     this.smartForTwo        = smartForTwo;
     this.builderTexto       = builderTexto;
     this.validacoesDados    = validacoesDados;
 }
Exemplo n.º 8
0
 public TerminalService(ITerminal terminal, ISmartForTwo smartForTwo)
 {
     _terminal    = terminal;
     _smartForTwo = smartForTwo;
 }
Exemplo n.º 9
0
 public TerminalServiceTest()
 {
     _terminal        = new Terminal();
     _smartForTwo     = new SmartForTwo();
     _terminalService = new TerminalService(_terminal, _smartForTwo);
 }