Пример #1
0
        public ActionResult <RegisterDoctorResponse> Post(RegisterDoctorRequest request)
        {
            var service  = new RegisterDoctorService(_unitOfWork);
            var response = service.Ejecute(request);

            return(Ok(response));
        }
Пример #2
0
        public void CreateOphthalmologistTest()
        {
            var request = new RegisterDoctorRequest
            {
                Identification = "4444", Name = "Doctor", Surname = "Prueba", Age = 30, Degree = "Oftalmologo",
                Experience     = 7, Gender = "Masculino"
            };
            var service  = new RegisterDoctorService(new UnitOfWork(_context));
            var response = service.Ejecute(request);

            Assert.AreEqual("Doctor registrado satisfactoriamente", response.Mensaje);
        }