Esempio n. 1
0
        public override void ConvertAPIToSDK()
        {
            Silanis.ESL.API.ReferencedFieldConditions apiConditions = createApiReferencedFieldConditionsForTest();

            Silanis.ESL.API.ReferencedField api = new Silanis.ESL.API.ReferencedField();
            api.FieldId    = FIELD_1_ID;
            api.Conditions = apiConditions;

            ReferencedField sdk = ReferencedFieldConverter.ToSDK(api);

            Assert.AreEqual(sdk.FieldId, FIELD_1_ID);
            Assert.IsTrue(compareReferencedFieldConditions(apiConditions, sdk.Conditions));
        }
Esempio n. 2
0
        public override void ConvertSDKToAPI()
        {
            ReferencedFieldConditions sdkConditions = createSdkReferencedFieldConditionsForTest();

            ReferencedField sdk = new ReferencedField();

            sdk.FieldId    = FIELD_1_ID;
            sdk.Conditions = sdkConditions;

            Silanis.ESL.API.ReferencedField api = ReferencedFieldConverter.ToAPI(sdk);

            Assert.AreEqual(api.FieldId, FIELD_1_ID);
            Assert.IsTrue(compareReferencedFieldConditions(api.Conditions, sdkConditions));
        }
Esempio n. 3
0
 public override void ConvertNullSDKToAPI()
 {
     Silanis.ESL.API.ReferencedField api = ReferencedFieldConverter.ToAPI(null);
     Assert.IsNull(api);
 }
Esempio n. 4
0
        public override void ConvertNullAPIToSDK()
        {
            ReferencedField sdk = ReferencedFieldConverter.ToSDK(null);

            Assert.IsNull(sdk);
        }
Esempio n. 5
0
 public override void ConvertNullSDKToAPI()
 {
     OneSpanSign.API.ReferencedField api = ReferencedFieldConverter.ToAPI(null);
     Assert.IsNull(api);
 }