public override void ConvertSDKToAPI()
        {
            List <FieldCondition> sdkFieldConditionsReferencedInCondition = createSdkFieldConditionsForTest(CONDITION_1_ID, FIELD_1_ID, FIELD_2_ID);
            List <FieldCondition> sdkFieldConditionsReferencedInAction    = new List <FieldCondition>();

            ReferencedFieldConditions sdk = new ReferencedFieldConditions();

            sdk.ReferencedInCondition = sdkFieldConditionsReferencedInCondition;
            sdk.ReferencedInAction    = sdkFieldConditionsReferencedInAction;

            Silanis.ESL.API.ReferencedFieldConditions api = ReferencedFieldConditionsConverter.ToAPI(sdk);

            Assert.IsTrue(compareFieldConditions(api.ReferencedInCondition, sdkFieldConditionsReferencedInCondition));
            Assert.IsTrue(compareFieldConditions(api.ReferencedInAction, sdkFieldConditionsReferencedInAction));
        }
 public override void ConvertNullSDKToAPI()
 {
     Silanis.ESL.API.ReferencedFieldConditions api = ReferencedFieldConditionsConverter.ToAPI(null);
     Assert.IsNull(api);
 }
Esempio n. 3
0
 public override void ConvertNullSDKToAPI()
 {
     OneSpanSign.API.ReferencedFieldConditions api = ReferencedFieldConditionsConverter.ToAPI(null);
     Assert.IsNull(api);
 }