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