Example #1
0
        public ActionResult <RegisterPatientResponse> Post(RegisterPatientRequest request)
        {
            var service  = new RegisterPatientService(_unitOfWork);
            var response = service.Ejecute(request);

            return(Ok(response));
        }
Example #2
0
        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);
        }