public async Task DeveObterEnderecoComoXmlAsync() { var enderecoXml = await _viaCepService.ObterEnderecoComoXmlAsync("01001000"); Assert.NotNull(enderecoXml); Assert.True(enderecoXml.ToString().Contains("<xmlcep>")); enderecoXml = await _viaCepService.ObterEnderecoComoXmlAsync("01001-000"); Assert.NotNull(enderecoXml); Assert.True(enderecoXml.ToString().Contains("<xmlcep>")); var enderecosXml = await _viaCepService.ObterEnderecosComoXmlAsync(_enderecoRequisicao); Assert.NotNull(enderecosXml); Assert.True(enderecosXml.ToString().Contains("<xmlcep>")); }
public async Task <XDocument> ComoXmlAsync() => await _viaCepService.ObterEnderecosComoXmlAsync(_enderecoRequisicao);