public async void GetCountyTest() { try { var client = new IbgeLocationClient(); var result = await client.GetCountyAsync(); result.ToList().Should().HaveCountGreaterThan(0); } catch (Exception e) { Assert.Empty(e.Message); } }
public async void GetMesoRegionByRegionIdTest() { try { var client = new IbgeLocationClient(); var result = await client.GetMesoRegionByRegionAsync(new List <int> { 3 }); result.ToList().Should().HaveCountGreaterThan(0); } catch (Exception e) { Assert.Empty(e.Message); } }
public async void GetSubDistrictByDistrictTest() { try { var client = new IbgeLocationClient(); var result = await client.GetSubDistrictsByDistrictsAsync(new List <int> { 110020505 }); result.ToList().Should().HaveCountGreaterThan(0); } catch (Exception e) { Assert.Empty(e.Message); } }
public async void GetSubDistrictByIdTest() { try { var client = new IbgeLocationClient(); var result = await client.GetSubDistrictsByIdAsync(new List <ulong> { 53001080517 }); result.ToList().Should().HaveCountGreaterThan(0); } catch (Exception e) { Assert.Empty(e.Message); } }
public async void GetSubDistrictByUfTest() { try { var client = new IbgeLocationClient(); var result = await client.GetSubDistrictsByUfsAsync(new List <int> { 43 }); //TODO nenhum estado está retornando resultados, verificar API. //result.ToList().Should().HaveCountGreaterThan(0); } catch (Exception e) { Assert.Empty(e.Message); } }