Пример #1
0
        public void ComoAtendenteQueroCalcularOValorTotalDoAgendamento()
        {
            //Arrange

            Agendamento       agendamento       = (new FabricaDeAgendamento()).InformarMedico("1234", "Fabio").InformarAtendente("12345", "Joao").Criar();
            TipoExame         tipoExame         = new TipoExame("0001110000111212", 10);
            CentroDiagnostico centroDiagnostico = new CentroDiagnostico("111.222.333/00001-11");
            Exame             exame             = new Exame(tipoExame, centroDiagnostico, new DateTime(2015, 02, 20));

            agendamento.AdicionarExame(exame);
            agendamento.AdicionarExame(exame);

            //Act
            var retorno = agendamento.CalcularValorTotal();

            //Assert

            Assert.IsTrue(retorno == 20);
        }
Пример #2
0
        public void ComoAtendenteQueroCalcularOValorTotalDoAgendamento()
        {
            //Arrange

            Medico            medico            = new Medico("1234", "Mario Peres");
            Atendente         atendente         = new Atendente("000.000.000-10", "Victor Cleber");
            Agendamento       agendamento       = new Agendamento(atendente, medico);
            TipoExame         tipoExame         = new TipoExame("0001110000111212", 10);
            CentroDiagnostico centroDiagnostico = new CentroDiagnostico("111.222.333/00001-11");
            Exame             exame             = new Exame(tipoExame, centroDiagnostico, new DateTime(2015, 02, 20));

            agendamento.AdicionarExame(exame);
            agendamento.AdicionarExame(exame);

            //Act
            var retorno = agendamento.CalcularValorTotal();

            //Assert

            Assert.IsTrue(retorno == 20);
        }