public ActionResult <CompleteMedicalExamResponse> Post(CompleteMedicalExamRequest request) { var service = new CompleteMedicalExamService(_unitOfWork); var response = service.Ejecute(request); return(Ok(response)); }
public void CompleteMedicalAppointmentTest() { var requestA = new RegisterMedicalExamRequest { Patient = new Patient { Id = "1004", Stratum = 2 }, Date = DateTime.Now }; var serviceA = new RegisterMedicalExamService(new UnitOfWork(_context)); serviceA.Ejecute(requestA); var request = new CompleteMedicalExamRequest { Identification = 1 }; var service = new CompleteMedicalExamService(new UnitOfWork(_context)); var response = service.Ejecute(request); Assert.AreEqual("Examen completado Correctamente", response.Mensaje); }