public async Task GetAllAirplaneAsync() { //Arranje - Cenário //Act - método de teste IEnumerable <Airplane> retorno = await _airplaneService.GetAllAirplaneAsync(); Assert.NotEmpty(retorno); }
//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"); }
public async Task <IEnumerable <Airplane> > GetAllAirplane() { return(await _airplaneService.GetAllAirplaneAsync()); }