Пример #1
0
        public async Task DeveObterEnderecoComoQuertyAsync()
        {
            var quertyEndereco = await _viaCep.ObterEnderecoComoQuertyAsync("01001000");

            Assert.True(quertyEndereco.Contains("cep=01001-000&logradouro=Pra%C3%A7a+da+S%C3%A9"));

            quertyEndereco = await _viaCep.ObterEnderecoComoQuertyAsync("01001-000");

            Assert.True(quertyEndereco.Contains("cep=01001-000&logradouro=Pra%C3%A7a+da+S%C3%A9"));
        }
Пример #2
0
 public async Task <string> ComoQuertyAsync()
 => await _viaCep.ObterEnderecoComoQuertyAsync(_cep);