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 async void EuClicarEmEmitirLaudo() { _examReport = await _examReportService.SaveAsync <ExamReportValidator>(_resident.User.Id, _newExamReport); }