public ActionResult <RegisterMedicalExamResponse> Post(RegisterMedicalExamRequest request)
        {
            var service  = new RegisterMedicalExamService(_unitOfWork);
            var response = service.Ejecute(request);

            return(Ok(response));
        }
        public void RegisterMedicalExamTest()
        {
            var request = new RegisterMedicalExamRequest
            {
                Patient = new Patient {
                    Id = "1004", Stratum = 2
                }, Date = DateTime.Now
            };
            var service  = new RegisterMedicalExamService(new UnitOfWork(_context));
            var response = service.Ejecute(request);

            Assert.AreEqual("Examen medico creado satisfactoriamente", response.Mensaje);
        }
        public void CancelMedicalAppointmentTest()
        {
            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 CancelMedicalExamRequest {
                Identification = 1
            };
            var service  = new CancelMedicalExamService(new UnitOfWork(_context));
            var response = service.Ejecute(request);

            Assert.AreEqual("Examen cancelado Correctamente", response.Mensaje);
        }