Ejemplo n.º 1
0
        public ActionResult <PacienteResponse> Post(PacienteRequest request)
        {
            CrearPacienteService _service = new CrearPacienteService(_unitOfWork);
            PacienteResponse     response = _service.CrearPaciente(request);

            return(Ok(response));
        }
        public void Create(PacienteRequest request, string expected)
        {
            CrearPacienteService service = new CrearPacienteService(unitOfWork);
            var response = service.CrearPaciente(request);

            Assert.AreEqual(response.Message, expected);
        }