Example #1
0
        public void Create(TratamientoRequest request, string expected)
        {
            CrearTratamientoService service = new CrearTratamientoService(unitOfWork);
            var response = service.CrearTratamiento(request);

            Assert.AreEqual(response.Message, expected);
        }
        public ActionResult <TratamientoResponse> Post(TratamientoRequest request)
        {
            CrearTratamientoService _service = new CrearTratamientoService(_unitOfWork);
            TratamientoResponse     response = _service.CrearTratamiento(request);

            return(Ok(response));
        }