public void CrearEmpresa(CrearEmpresaRequest request, string expected) { service = new CrearEmpresaService(_unitOfWork); var response = service.Ejecutar(request); Assert.AreEqual(expected, response.Message); }
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); }
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)); }