public void DadoAListaIbgeSemUmItem() { var regionDiff = new RegionDiff(local, ibgeWhithoutFirstItem); var result = regionDiff.GetNonexistentsInIbge().ToList(); Assert.NotEmpty(result); }
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); }