コード例 #1
0
        public void CrearEmpresa(CrearEmpresaRequest request, string expected)
        {
            service = new  CrearEmpresaService(_unitOfWork);
            var response = service.Ejecutar(request);

            Assert.AreEqual(expected, response.Message);
        }
コード例 #2
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);
        }
コード例 #3
0
        public ActionResult PostConvenio([FromBody] CrearEmpresaRequest empresa)
        {
            _service = new CrearEmpresaService(_unitOfWork);
            var rta = _service.Ejecutar(empresa);

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