public static async Task RegionIbgeRequestManualTest() { var http = new HttpClient(); RegionIbgeRepository repository = new RegionIbgeRepository(http); var response = await repository.Get(IbgeEndPoints.RegionUrl); Console.WriteLine("Retorno da api do IBGE"); foreach (var item in response) { Console.WriteLine("{0}, {1}, {2}", item.id, item.nome, item.sigla); } }
public async Task RequisicaoValida() { var result = await _regionIbgeRepository.Get(IbgeEndPoints.RegionUrl); Assert.True(result.Count() > 0); }