Exemplo 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));
        }
Exemplo 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));
        }
Exemplo n.º 3
0
 public override void ConvertNullSDKToAPI()
 {
     Silanis.ESL.API.ReferencedField api = ReferencedFieldConverter.ToAPI(null);
     Assert.IsNull(api);
 }
Exemplo n.º 4
0
        public override void ConvertNullAPIToSDK()
        {
            ReferencedField sdk = ReferencedFieldConverter.ToSDK(null);

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