Beispiel #1
0
        public async System.Threading.Tasks.Task OpenExamInsertScreenAsync()
        {
            await _medicService.SaveAsync <MedicValidator>(_medic = new Medic
            {
                CRM  = "123",
                User = new User
                {
                    Name     = "Medico",
                    Email    = "*****@*****.**",
                    Password = "******"
                }
            });

            await _patientService.SaveAsync <PatientValidator>(new Patient
            {
                Birthdate = DateTime.Now.Subtract(TimeSpan.FromDays(365 * 10)),
                Color     = PatientColors.Branco,
                Sex       = 'M',
                User      = new User
                {
                    Email    = "*****@*****.**",
                    Name     = "Paciente",
                    Password = "******"
                }
            });

            _examRequest = new Domain.Entities.ExamRequest()
            {
                Medic = _medic
            };

            _patient = await _patientService.FindByIdAsync(1);

            _examRequest.Patient = _patient;
        }
Beispiel #2
0
        private CreateExamReportTest()
        {
            _examReportService  = GetService <IExamReportService>();
            _medicService       = GetService <IMedicService>();
            _examRequestService = GetService <IExamRequestService>();

            _newExamReport = new Domain.Entities.ExamReport();

            _resident = new Resident()
            {
                CRM         = "123",
                InitialDate = DateTime.Now,
                User        = new User
                {
                    Id       = 1,
                    Email    = "*****@*****.**",
                    Name     = "resident",
                    Password = "******",
                }
            };

            _examRequest = new Domain.Entities.ExamRequest
            {
                Id            = 1,
                Hypothesis    = "Cancer no coracao",
                ExamName      = ExamType.Ecocardiograma,
                Recomendation = "Descansar"
            };

            _medicService.SaveAsync <MedicValidator>(_resident);
            _examRequestService.SaveAsync <ExamRequestValidator>(_examRequest);
        }
 public void AbrirTelaCadastrarPedidoExame()
 {
     _medic = new Medic
     {
         CRM  = "123",
         User = new User
         {
             Name     = "Medico",
             Email    = "*****@*****.**",
             Password = "******"
         }
     };
     _medicService.SaveAsync <MedicValidator>(_medic);
     _patientService.SaveAsync <PatientValidator>(new Patient
     {
         Birthdate = DateTime.Now.Subtract(TimeSpan.FromDays(365 * 10)),
         Color     = PatientColors.Branco,
         Sex       = 'M',
         User      = new User
         {
             Email    = "*****@*****.**",
             Name     = "Paciente",
             Password = "******"
         }
     });
     _examRequest = new Domain.Entities.ExamRequest()
     {
         Medic = _medic
     };
 }