public void ComoPacienteQueroConsultarOResultadoDosMeusExames()
        {
            //Assert
            IAgendamentos agendamentos = new AgendamentosFake();

            //Arrange
            Agendamento agendamento =
                agendamentos.pesquisarPorPaciente((new Credencial("*****@*****.**", "1234")));

            //Assert
            Assert.IsTrue(agendamento.Exames.First().Laudo.Descricao == "teste");
        }
        public void DevePersistirOAgendamento()
        {
            //Arrage
            Agendamento agendamento =
                (new FabricaDeAgendamento()).InformarPaciente("123")
                .InformarMedicoSolicitante("1234")
                .InformarAtendente("1234")
                .Criar();

            agendamento.AdicionarExame(new Exame(new TipoExame("10101012", "Hemograma", 100)));

            IAgendamentos agendamentos = new AgendamentosFake();

            //Act
            var retorno = agendamentos.Gravar(agendamento);

            //Assert
            Assert.IsTrue(retorno);
        }
Exemple #3
0
        public void ComoAtendenteQueroPersistirUmAgendamento()
        {
            //Arrange
            IAgendamentos agendamentos = new AgendamentosFake();

            FabricaDeAgendamento fabricaDeAgendamento = new FabricaDeAgendamento();

            //act

            Agendamento agendamento =
                fabricaDeAgendamento.
                InformarPaciente("2345").
                InformarMedico("1234").
                InformarCID("21-9").
                Criar();

            //Act
            var retorno = agendamentos.Gravar(agendamento);


            //Assert
            Assert.IsTrue(retorno);
        }