示例#1
0
        public async Task DeveObterEnderecoComoPipedAsync()
        {
            var pipedEndereco = await _viaCep.ObterEnderecoComoPipedAsync("01001000");

            Assert.True(pipedEndereco.Contains("cep:01001-000"));

            pipedEndereco = await _viaCep.ObterEnderecoComoPipedAsync("01001-000");

            Assert.True(pipedEndereco.Contains("cep:01001-000"));
        }
示例#2
0
 public async Task <string> ComoPipedAsync()
 => await _viaCep.ObterEnderecoComoPipedAsync(_cep);