public void ComoAtendenteQueroConsultarACoberturadeUmTipoDeExame()
        {
            //Arrange
            Exame exame = new Exame();
            exame.InformarTipoExame(new TipoExame("1023"));

            IServicoDeConsultaAPlanoDeSaude servicoDeConsultaAPlanoDeSaude = new ServicoDeConsultaAPlanoDeSaudeFake();

            //Act
            var retorno = servicoDeConsultaAPlanoDeSaude.ConsultarCobertura(exame.TipoExame, new PlanoSaude("PortoMaster"));

            //Assert

            Assert.IsTrue(retorno);
        }
Exemple #2
0
        public virtual void AdicionarExame(Exame exame)
        {
            if(Exames==null)
                Exames = new List<Exame>();

            if(exame.ID ==null)
                throw new Exception("ID inválido");

            IServicoDeConsultaAPlanoDeSaude servicoDeConsultaAPlanoDeSaude = new ServicoDeConsultaAPlanoDeSaudeFake();

            var retorno = servicoDeConsultaAPlanoDeSaude.ConsultarCobertura(exame.TipoExame, this.PlanoDeSaude);
            //incluir regra para zerar ou não o valor do exame

            ((IList<Exame>) Exames).Add(exame);
        }