public virtual void ConvertAPIToSDK()
        {
            List <OneSpanSign.API.ReferencedDocument> apiDocuments = CreateApiReferencedDocumentsForTest();

            OneSpanSign.API.ReferencedConditions api = new OneSpanSign.API.ReferencedConditions();
            api.PackageId = PACKAGE_ID;
            api.Documents = apiDocuments;

            ReferencedConditions sdk = ReferencedConditionsConverter.ToSDK(api);

            Assert.AreEqual(sdk.PackageId, PACKAGE_ID);
            Assert.IsTrue(compareReferencedDocuments(apiDocuments, sdk.Documents));
        }
        public virtual void ConvertSDKToAPI()
        {
            List <ReferencedDocument> sdkDocuments = createSdkReferencedDocumentsForTest();

            ReferencedConditions sdk = new ReferencedConditions();

            sdk.PackageId = PACKAGE_ID;
            sdk.Documents = sdkDocuments;

            OneSpanSign.API.ReferencedConditions api = ReferencedConditionsConverter.ToAPI(sdk);

            Assert.AreEqual(api.PackageId, PACKAGE_ID);
            Assert.IsTrue(compareReferencedDocuments(api.Documents, sdkDocuments));
        }
 public virtual void ConvertNullSDKToAPI()
 {
     OneSpanSign.API.ReferencedConditions api = ReferencedConditionsConverter.ToAPI(null);
     Assert.IsNull(api);
 }