Exemple #1
0
        public async Task GetAllAirplaneAsync()
        {
            //Arranje - Cenário


            //Act - método de teste
            IEnumerable <Airplane> retorno = await _airplaneService.GetAllAirplaneAsync();

            Assert.NotEmpty(retorno);
        }
Exemple #2
0
        //public Program(IAirplaneService airplaneService)
        //{
        //    _airplaneService = airplaneService;
        //}

        private static async Task GetAllAirplaneAsync()
        {
            //Arranje - Cenário
            var boing = new Airplane {
                Id = 1000, Nome = "Avião teste"
            };

            //Act - método de teste
            IEnumerable <Airplane> retorno = await _airplaneService.GetAllAirplaneAsync();


            Console.WriteLine("teste");
        }
Exemple #3
0
 public async Task <IEnumerable <Airplane> > GetAllAirplane()
 {
     return(await _airplaneService.GetAllAirplaneAsync());
 }