WCF service for CUN notification and email management
Last commit: 2025-09-02
INSERT INTO PRL700 (PR04NUMACTPLAN ,PRL7RESULTADOIA , PRL7FECEVAL ,PRL7VERSIONIA) VALUES (…| Operation ⇅ | Verb | Returns ⇅ | Parameters | SQLs ⇅ | Description | Flags |
|---|---|---|---|---|---|---|
| GuardarInformacionIA | SOAP | RespBool | datosIA | 1 | ✓ |
INSERT INTO PRL700 (PR04NUMACTPLAN ,PRL7RESULTADOIA , PRL7FECEVAL ,PRL7VERSIONIA) VALUES (:numActPlan,:resultadoIA, TO_DATE(:fechaEvalucaion, 'YYYY-MM-DD HH24:MI:SS'), :versionAI)
/// <summary> /// Executes guardar informacion i a /// </summary> /// <param name="datosIA">TODO: describe datosIA</param> /// <returns>RespBool</returns>
[TestMethod]
public void Test_GuardarInformacionIA_ReturnsSuccess()
{
// Arrange
// NOTE: requires Oracle DB connection — configure App.config or mock OracleConnection
// NOTE: external dependency detected — consider mocking: Oracle DB
var client = new WSCUNNotificaciones();
var datosIA = null;
// Act
var result = client.GuardarInformacionIA(datosIA);
// Assert
Assert.IsTrue(result.Exito);
}
[TestMethod]
public void Test_GuardarInformacionIA_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSCUNNotificaciones();
var datosIA = -1;
// Act
var result = client.GuardarInformacionIA(datosIA);
// Assert
Assert.IsFalse(result?.Exito ?? true);
}
Helper methods inside the service implementation — not part of the public contract.
| File | Query | Tables |
|---|---|---|
| CUNNotificaciones-EM.svc.cs | INSERT INTO PRL700 (PR04NUMACTPLAN ,PRL7RESULTADOIA , PRL7FECEVAL ,PRL7VERSIONIA) VALUES (:numActPlan,:resultadoIA, TO_DATE(:fechaEvalucaion, 'YYYY-MM-DD HH24:MI:SS'), :versionAI) |
PRL700 |