WCF service integrating with Fundanet (foundation/billing system)
Last commit: 2022-10-31
UpsertEstudioClinico also in → NET-WS-CRM| Operation ⇅ | Verb | Returns ⇅ | Parameters | SQLs ⇅ | Description | Flags |
|---|---|---|---|---|---|---|
| UpsertEstudioClinico | SOAP | RespBool | estudioClinico, nombreConfig | 0 | ⚠ 🔁 |
/// <summary> /// Creates or updates upsert estudio clinico /// </summary> /// <param name="estudioClinico">TODO: describe estudioClinico</param> /// <param name="nombreConfig">TODO: describe nombreConfig</param> /// <returns>RespBool</returns>
[TestMethod]
public void Test_UpsertEstudioClinico_ReturnsSuccess()
{
// Arrange
var client = new WSFundanet();
var estudioClinico = null;
var nombreConfig = "test_value";
// Act
var result = client.UpsertEstudioClinico(estudioClinico, nombreConfig);
// Assert
Assert.IsTrue(result.Exito);
}
[TestMethod]
public void Test_UpsertEstudioClinico_WithInvalidInput_ReturnsFailure()
{
// Arrange
var client = new WSFundanet();
var estudioClinico = -1;
var nombreConfig = null;
// Act
var result = client.UpsertEstudioClinico(estudioClinico, nombreConfig);
// Assert
Assert.IsFalse(result?.Exito ?? true);
}