Ejemplo n.º 1
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 ExamReportController(
     IExamReportService examReportService,
     IMapper mapper,
     INotificator notificator) : base(notificator)
 {
     _examReportService = examReportService;
     _mapper            = mapper;
 }