WCF/ASMX services for Word/OpenXML document generation and conversion
Last commit: 2020-03-31
| Operation ⇅ | Verb | Returns ⇅ | Parameters | SQLs ⇅ | Description | Flags |
|---|---|---|---|---|---|---|
| CrearUnWord | SOAP | string | 0 | ✓ | ||
| CrearUnWordConTexto | SOAP | string | texto | 0 | ✓ | |
| EscribirWord | SOAP | ControlError | ce, fullPathPlantilla, dirDocumento, nomdoc, we | 0 | ⚠ | |
| EscribirWordConTabla | SOAP | ControlError | ce, fullPathPlantilla, dirDocumento, nomdoc, we, tabla, null | 0 | ⚠ | |
| GenerarWordPacs | SOAP | void | ce, pathPlantilla, pathDocumento, we, numDocumento | 0 | ✓ |
/// <summary> /// Crea crear un word /// </summary> /// <returns>string</returns>
[TestMethod]
public void Test_CrearUnWord_ReturnsSuccess()
{
// Arrange
var client = new WSWord();
// Act
var result = client.CrearUnWord();
// Assert
Assert.IsNotNull(result);
}
[TestMethod]
public void Test_CrearUnWord_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSWord();
// Act
var result = client.CrearUnWord();
// Assert
Assert.IsFalse(result?.Exito ?? true);
}
/// <summary> /// Crea crear un word con texto /// </summary> /// <param name="texto">TODO: describe texto</param> /// <returns>string</returns>
[TestMethod]
public void Test_CrearUnWordConTexto_ReturnsSuccess()
{
// Arrange
var client = new WSWord();
var texto = "test_value";
// Act
var result = client.CrearUnWordConTexto(texto);
// Assert
Assert.IsNotNull(result);
}
[TestMethod]
public void Test_CrearUnWordConTexto_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSWord();
var texto = null;
// Act
var result = client.CrearUnWordConTexto(texto);
// Assert
Assert.IsFalse(result?.Exito ?? true);
}
/// <summary> /// Executes escribir word /// </summary> /// <param name="ce">TODO: describe ce</param> /// <param name="fullPathPlantilla">TODO: describe fullPathPlantilla</param> /// <param name="dirDocumento">TODO: describe dirDocumento</param> /// <param name="nomdoc">TODO: describe nomdoc</param> /// <param name="we">TODO: describe we</param> /// <returns>ControlError</returns>
[TestMethod]
public void Test_EscribirWord_ReturnsSuccess()
{
// Arrange
var client = new WSWord();
var ce = null;
var fullPathPlantilla = "test_value";
var dirDocumento = "test_value";
var nomdoc = "test_value";
var we = null;
// Act
var result = client.EscribirWord(ce, fullPathPlantilla, dirDocumento, nomdoc, we);
// Assert
Assert.IsNotNull(result);
Assert.IsTrue(result.Exito);
}
[TestMethod]
public void Test_EscribirWord_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSWord();
var ce = -1;
var fullPathPlantilla = null;
var dirDocumento = null;
var nomdoc = null;
var we = -1;
// Act
var result = client.EscribirWord(ce, fullPathPlantilla, dirDocumento, nomdoc, we);
// Assert
Assert.IsFalse(result?.Exito ?? true);
}
/// <summary> /// Executes escribir word con tabla /// </summary> /// <param name="ce">TODO: describe ce</param> /// <param name="fullPathPlantilla">TODO: describe fullPathPlantilla</param> /// <param name="dirDocumento">TODO: describe dirDocumento</param> /// <param name="nomdoc">TODO: describe nomdoc</param> /// <param name="we">TODO: describe we</param> /// <param name="tabla">TODO: describe tabla</param> /// <param name="null">TODO: describe null</param> /// <returns>ControlError</returns>
[TestMethod]
public void Test_EscribirWordConTabla_ReturnsSuccess()
{
// Arrange
var client = new WSWord();
var ce = null;
var fullPathPlantilla = "test_value";
var dirDocumento = "test_value";
var nomdoc = "test_value";
var we = null;
var tabla = null;
var null = null;
// Act
var result = client.EscribirWordConTabla(ce, fullPathPlantilla, dirDocumento, nomdoc, we, tabla, null);
// Assert
Assert.IsNotNull(result);
Assert.IsTrue(result.Exito);
}
[TestMethod]
public void Test_EscribirWordConTabla_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSWord();
var ce = -1;
var fullPathPlantilla = null;
var dirDocumento = null;
var nomdoc = null;
var we = -1;
var tabla = -1;
var null = -1;
// Act
var result = client.EscribirWordConTabla(ce, fullPathPlantilla, dirDocumento, nomdoc, we, tabla, null);
// Assert
Assert.IsFalse(result?.Exito ?? true);
}
/// <summary> /// Executes generar word pacs /// </summary> /// <param name="ce">TODO: describe ce</param> /// <param name="pathPlantilla">TODO: describe pathPlantilla</param> /// <param name="pathDocumento">TODO: describe pathDocumento</param> /// <param name="we">TODO: describe we</param> /// <param name="numDocumento">TODO: describe numDocumento</param> /// <returns>void</returns>
[TestMethod]
public void Test_GenerarWordPacs_ReturnsSuccess()
{
// Arrange
var client = new WSWord();
var ce = null;
var pathPlantilla = "test_value";
var pathDocumento = "test_value";
var we = null;
var numDocumento = "test_value";
// Act
var result = client.GenerarWordPacs(ce, pathPlantilla, pathDocumento, we, numDocumento);
// Assert
Assert.IsNotNull(result);
}
[TestMethod]
public void Test_GenerarWordPacs_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSWord();
var ce = -1;
var pathPlantilla = null;
var pathDocumento = null;
var we = -1;
var numDocumento = null;
// Act
var result = client.GenerarWordPacs(ce, pathPlantilla, pathDocumento, we, numDocumento);
// Assert
Assert.IsFalse(result?.Exito ?? true);
}