public void Dado_uma_proposta_deve_mapear_um_Evento() { ObterProposta(); var eventoImplantacao = _proposta.ToEvento(); Assert.AreEqual(_proposta.Identificador, eventoImplantacao.Identificador); Assert.AreEqual(_proposta.DataExecucaoEvento, eventoImplantacao.DataExecucaoEvento); }
public void Dado_uma_Proposta_com_matricula_igual_do_conjuge_deve_Adicionar_dados_do_conjuge() { _proposta = PropostaBuilder.UmaProposta() .Padrao() .Com(DadosPagamentoBuilder.UmPagamento()) .Com(ProponenteBuider.UmProponente().Padrao() .Com(PessoaBuilder.UmaPessoa().ComMatricula(IdentificadoresPadrao.Matricula))) .Com(ProdutoBuilder.UmProduto() .ComMatricula(IdentificadoresPadrao.Matricula) .ComInscricao(IdentificadoresPadrao.InscricaoId) .Com(BeneficiarioBuilder.UmBeneficiario()) .Com(CoberturaBuilder.UmaCobertura() .ComItemCertificadoApolice(IdentificadoresPadrao.ItemCertificadoApoliceId) .ComItemProdutoId(IdentificadoresPadrao.ItemProdutoId) .ComInicioVigencia(IdentificadoresPadrao.DataInicioVigencia) .Com(ContratacaoBuilder.UmaContratacao() .ComTipoFormaContratacao(TipoFormaContratacaoEnum.RendaMensal) .ComTipoRenda(TipoDeRendaEnum.NaoSeAplica)) ) ).Build(); var eventoImplantacao = _proposta.ToEvento(); var coberturaContratada = eventoImplantacao.Coberturas.First(); Assert.AreEqual(_proposta.Proponente.Conjuge.Matricula, coberturaContratada.Matricula); }
public void FixtureSetUp() { ObterProposta(); _evento = _proposta.ToEvento(); }