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


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

            Assert.NotEmpty(retorno);
        }
Beispiel #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");
        }
Beispiel #3
0
 public async Task <IEnumerable <Airplane> > GetAllAirplane()
 {
     return(await _airplaneService.GetAllAirplaneAsync());
 }