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

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

            Assert.AreEqual(sdkPackageStatus1.ToString(), apiPackageStatus1.ToString());
        }
Exemplo n.º 3
0
        public void ConvertAPIUnknonwnValueToUnrecognizedDocumentPackageStatus()
        {
            apiPackageStatus1 = "NEWLY_ADDED_AUTHENTICATION_METHOD";
            sdkPackageStatus1 = new PackageStatusConverter(apiPackageStatus1).ToSDKPackageStatus();

            Assert.AreEqual(sdkPackageStatus1.getApiValue(), apiPackageStatus1);
        }
Exemplo n.º 4
0
        public void ConvertAPIExpiredToSDKExpired()
        {
            string expectedSDKStatus = "EXPIRED";

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

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Exemplo n.º 5
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());
        }
Exemplo n.º 6
0
        public void ConvertAPIDeclinedToSDKDeclined()
        {
            string expectedSDKStatus = "DECLINED";

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

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

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

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

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

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

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

            Assert.AreEqual(expectedSDKStatus, sdkPackageStatus1.ToString());
        }
Exemplo n.º 10
0
        public void ConvertSDKExpiredToAPIExpired()
        {
            string expectedAPIValue = "EXPIRED";

            sdkPackageStatus1 = DocumentPackageStatus.EXPIRED;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }
Exemplo n.º 11
0
        public void ConvertSDKOpted_OutToAPIOpted_Out()
        {
            string expectedAPIValue = "OPTED_OUT";

            sdkPackageStatus1 = DocumentPackageStatus.OPTED_OUT;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }
Exemplo n.º 12
0
        public void ConvertSDKDeclinedToAPIDeclined()
        {
            string expectedAPIValue = "DECLINED";

            sdkPackageStatus1 = DocumentPackageStatus.DECLINED;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }
Exemplo n.º 13
0
        public void ConvertSDKArchivedToAPIArchived()
        {
            string expectedAPIValue = "ARCHIVED";

            sdkPackageStatus1 = DocumentPackageStatus.ARCHIVED;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }
Exemplo n.º 14
0
        public void ConvertCompletedToAPICompleted()
        {
            string expectedAPIValue = "COMPLETED";

            sdkPackageStatus1 = DocumentPackageStatus.COMPLETED;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }
Exemplo n.º 15
0
        public void ConvertSDKSentToAPISent()
        {
            string expectedAPIValue = "SENT";

            sdkPackageStatus1 = DocumentPackageStatus.SENT;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }
Exemplo n.º 16
0
        public void ConvertSDKDraftToAPIDraft()
        {
            string expectedAPIValue = "DRAFT";

            sdkPackageStatus1 = DocumentPackageStatus.DRAFT;
            apiPackageStatus1 = new PackageStatusConverter(sdkPackageStatus1).ToAPIPackageStatus();

            Assert.AreEqual(expectedAPIValue, apiPackageStatus1);
        }