public async Task GetCompleteByCodIbgeTest() { _serviceMock = new Mock <IMunicipioService>(); _serviceMock.Setup(m => m.GetCompleteByIbge(CodigoIBGEMunicipio)).ReturnsAsync(municipioDtoCompleto); _service = _serviceMock.Object; var result = await _service.GetCompleteByIbge(CodigoIBGEMunicipio); Assert.NotNull(result); Assert.True(result.Id == IdMunicipio); Assert.Equal(NomeMunicipio, result.Nome); Assert.Equal(CodigoIBGEMunicipio, result.CodIbge); Assert.NotNull(result.uf); }