public async Task WhenToRunTheGetCompleteByIdMethod() { _serviceMock = new Mock <ICountyService>(); _serviceMock.Setup(m => m.GetCompleteByIbge(CodeIbgeCounty)).ReturnsAsync(countyCompleteDto); _serviceCounty = _serviceMock.Object; var result = await _serviceCounty.GetCompleteByIbge(CodeIbgeCounty); Assert.NotNull(result); Assert.True(result.Id == IdCounty); Assert.Equal(NameCounty, result.Name); Assert.Equal(CodeIbgeCounty, result.CodeIbge); Assert.NotNull(result.FederalUnit); }