Exemplo n.º 1
0
        public void ComoAtendenteQueroInformarNoAgendamentoOPaciente()
        {
            //Arrange

            Paciente paciente = new Paciente("000.000.000-12", "Fabio Margarito Martins de Barros");

            Agendamento agendamento = (new FabricaDeAgendamento()).InformarMedico("1234", "Fabio").InformarAtendente("12345", "Joao").Criar();

            //Act
            agendamento.InformarPaciente(paciente);

            //Assert
            Assert.IsTrue(agendamento.Paciente.CPF == "000.000.000-12");
        }
Exemplo n.º 2
0
        public void ComoAtendenteQueroInformarNoAgendamentoOPaciente()
        {
            //Arrange

            Medico      medico      = new Medico("1234", "Mario Peres");
            Atendente   atendente   = new Atendente("000.000.000-10", "Victor Cleber");
            Paciente    paciente    = new Paciente("000.000.000-12", "Fabio Margarito Martins de Barros");
            Agendamento agendamento = new Agendamento(atendente, medico);

            //Act
            agendamento.InformarPaciente(paciente);


            //Assert
            Assert.IsTrue(agendamento.Paciente.CPF == "000.000.000-12");
        }
Exemplo n.º 3
0
        public void ComoAtendenteEuQueroCadastrarUmAgendamentoIntegrado()
        {
            //Arrange

            ServicoDeAgendamento servicoDeAgendamento = new ServicoDeAgendamento(new Agendamentos(_session));
            Medico      medico      = new Medico("1234", "Mario Peres");
            Atendente   atendente   = new Atendente("000.000.000-10", "Victor Cleber");
            Agendamento agendamento = (new FabricaDeAgendamento()).InformarMedico("1234", "Fabio").InformarAtendente("12345", "Joao").Criar();

            agendamento.InformarPaciente(new Paciente("1234", "Fabio Margarito"));

            //Act
            bool retorno = servicoDeAgendamento.CadastrarAgendamento(agendamento);

            //Assert

            Assert.IsTrue(retorno);
        }