Created
June 6, 2014 21:10
-
-
Save alexsandro-xpt/2a4dfa3dde4a569be29f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void QuantoCrioUmaIdentificacaoEmitenteCompleto() | |
{ | |
var obj = CriarIdentificacaoEmitente(); | |
var cnpj = new Cnpj("14.589.621/0001-67"); | |
var cpf = new Cpf("317.647.094-03"); | |
var nomeEmitente = new Nome("Jose"); | |
var logradouro = new Logradouro("Rua das coves"); | |
var numeroEndereco = new NumeroEndereco("4"); | |
var bairro = new Bairro("Ideal"); | |
var municipioId = new MunicipioCodigo("1214489"); | |
var municipioNome = new MunicipioNome("Ipatinga"); | |
var ufSigla = new UfSigla(UfSigla.TipoUf.AC); | |
var cep = new Cep("35160000"); | |
var complemento = new Complemento("A"); | |
var paisCodigo = new PaisCodigo(); | |
var paisNome = new PaisNome(); | |
var telefone = new Telefone("3138223030"); | |
var endereco = new EnderecoEmitente(logradouro, numeroEndereco, bairro, municipioId, municipioNome, ufSigla, cep, complemento, paisCodigo, paisNome, telefone); | |
var ie = new InscricaoEstadual("ISENTO"); | |
var regimeTributario = new RegimeTributario(RegimeTributario.TipoRegime.SimplesNacional); | |
var nomeFantasia = new NomeFantasia("Prefeitura LTDA"); | |
var ieSubstitutoTributario = new InscricaoEstadualSubstitutoTributario("4324324"); | |
var grupoInfomacoesPrefeitura = new GrupoInfomacoesPrefeitura("Qualé?", "3235579"); | |
var inscricaoMunicipal = grupoInfomacoesPrefeitura.InscricaoMunicipal; | |
var cnaeFiscal = grupoInfomacoesPrefeitura.CNAEFiscal; | |
var content = cnpj + nomeEmitente + nomeFantasia + endereco + ie + ieSubstitutoTributario + inscricaoMunicipal + cnaeFiscal + regimeTributario; | |
Console.WriteLine(obj.ToString()); | |
Assert.AreEqual(string.Format("<{0}>{1}</{0}>", TagsNfeConhecidas.emit, content), obj.ToString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment