public ActionResult <RegisterPatientResponse> Post(RegisterPatientRequest request) { var service = new RegisterPatientService(_unitOfWork); var response = service.Ejecute(request); return(Ok(response)); }
public void CreatePatientStratum5Test() { var request = new RegisterPatientRequest { Identification = "1005", Name = "Paciente5", Surname = "Prueba", Age = 25, Gender = "Masculino", Stratum = 5, EPS = "EpsExample" }; var service = new RegisterPatientService(new UnitOfWork(_context)); var response = service.Ejecute(request); Assert.AreEqual("Paciente registrado satisfactoriamente", response.Mensaje); }