Ejemplo n.º 1
0
        public void ConvertSDKToAPI()
        {
            sdkPackageStatus1 = DocumentPackageStatus.DRAFT;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(apiPackageStatus1.ToString(), sdkPackageStatus1.ToString());
        }
Ejemplo n.º 2
0
        public void ConvertAPIToSDK()
        {
            apiPackageStatus1 = DocumentPackageStatus.EXPIRED.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(sdkPackageStatus1.ToString(), apiPackageStatus1.ToString());
        }
Ejemplo n.º 3
0
        public void ConvertAPIExpiredToSDKExpired()
        {
            string expectedSDKStatus = "EXPIRED";

            apiPackageStatus1 = DocumentPackageStatus.EXPIRED.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Ejemplo n.º 4
0
        public void ConvertAPIOpted_OutToSDKOpted_Out()
        {
            string expectedSDKStatus = "OPTED_OUT";

            apiPackageStatus1 = DocumentPackageStatus.OPTED_OUT.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Ejemplo n.º 5
0
        public void ConvertAPIDeclinedToSDKDeclined()
        {
            string expectedSDKStatus = "DECLINED";

            apiPackageStatus1 = DocumentPackageStatus.DECLINED.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Ejemplo n.º 6
0
        public void ConvertAPIArchivedToSDKArchived()
        {
            string expectedSDKStatus = "ARCHIVED";

            apiPackageStatus1 = DocumentPackageStatus.ARCHIVED.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Ejemplo n.º 7
0
        public void ConvertAPICompletedToSDKCompleted()
        {
            string expectedSDKStatus = "COMPLETED";

            apiPackageStatus1 = DocumentPackageStatus.COMPLETED.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Ejemplo n.º 8
0
        public void ConvertAPISentDraftToSDKSent()
        {
            string expectedSDKStatus = "SENT";

            apiPackageStatus1 = DocumentPackageStatus.SENT.getApiValue();
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }