public void DadoUmaDiferencaIbgelNaSigla() { var regionDiff = new RegionDiff(localDifferent, ibge); var result = regionDiff.GetDiffs().First(); Assert.NotEqual("V", result.Initials.Ibge); }
public void DadoDuasListasDiferentes() { var regionDiff = new RegionDiff(localDifferent, ibge); var result = regionDiff.GetDiffs().ToList(); Assert.NotEmpty(result); }
public void DadoDuasListasIdenticas() { var regionDiff = new RegionDiff(local, ibge); var result = regionDiff.GetDiffs().ToList(); Assert.Empty(result); }
public void DadoUmaDiferencaAsIdsSaoIdenticas() { var regionDiff = new RegionDiff(localDifferent, ibge); var result = regionDiff.GetDiffs().First(); Assert.Equal(1, result.Id); }
public void DadoUmaDiferencaIbgelNoNome() { var regionDiff = new RegionDiff(localDifferent, ibge); var result = regionDiff.GetDiffs().First(); Assert.NotEqual("Vorte", result.Name.Ibge); }
public async Task <RegionDiffServices> Get() { var local = _repository.Get(); var request = await _ibgeRepository.Get(IbgeEndPoints.RegionUrl); var ibge = AutoMapperConfiguration.Mapper.Map <List <Region> >(request); regionDiff = new RegionDiff(local, ibge); this.Diffs = regionDiff.GetDiffs(); this.IbgeNonexistent = regionDiff.GetNonexistentsInIbge(); this.LocalNonexistent = regionDiff.GetNonexistentInLocal(); return(this); }