Example #1
0
        public async Task TesteConsultaEnderecoCompletoInvalidoComString()
        {
            var servicos     = new ServicoEnderecos();
            var enderecoBase = await servicos.ObterEndereco("960850000");

            enderecoBase.Localidade.Should().BeNull();
            enderecoBase.Bairro.Should().BeNull();
            enderecoBase.Logradouro.Should().BeNull();
        }
Example #2
0
        public async Task TesteConsultaEnderecoCompletoValidoComString()
        {
            var servicos     = new ServicoEnderecos();
            var enderecoBase = await servicos.ObterEndereco("96085000");

            enderecoBase.Localidade.Should().Be("Pelotas");
            enderecoBase.Bairro.Should().Be("Areal");
            enderecoBase.Logradouro.Should().Be("Avenida Ferreira Viana");
        }
Example #3
0
        public void TesteConsultaEnderecoCompletoInvalidoComString()
        {
            var servicos = new ServicoEnderecos();

            enderecoBase = servicos.ObterEndereco("960850000");

            Assert.IsNull(enderecoBase.Localidade);
            Assert.IsNull(enderecoBase.Bairro);
            Assert.IsNull(enderecoBase.Logradouro);
        }
Example #4
0
        public void TesteConsultaEnderecoCompletoValidoComString()
        {
            var servicos = new ServicoEnderecos();

            enderecoBase = servicos.ObterEndereco("96085000");

            Assert.AreEqual("Pelotas", enderecoBase.Localidade);
            Assert.AreEqual("Areal", enderecoBase.Bairro);
            Assert.AreEqual("Avenida Ferreira Viana", enderecoBase.Logradouro);
        }