コード例 #1
0
        public void CrearSolicitudEmpresa(CrearSolicitudRequest requestS, CrearEmpresaRequest requestE, string expected)
        {
            serviceEmp = new CrearEmpresaService(_unitOfWork);
            serviceEmp.Ejecutar(requestE);
            serviceS = new CrearSolicitudService(_unitOfWork);
            var response = serviceS.Ejecutar(requestS);

            Assert.AreEqual(expected, response.Message);
        }
コード例 #2
0
        public ActionResult PostEstudiante([FromBody] CrearSolicitudRequest solicitud)
        {
            _service = new CrearSolicitudService(_unitOfWork);
            var rta = _service.Ejecutar(solicitud);

            if (rta.isOk())
            {
                return(Ok(rta.Message));
            }
            return(BadRequest(rta.Message));
        }