Ejemplo n.º 1
0
        public void ConvertAPIROLE_REASSIGNToROLE_REASSIGNNotificationEvent()
        {
            apiNotificationEvent1 = "ROLE_REASSIGN";
            sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent();

            Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue());
        }
Ejemplo n.º 2
0
        public void ConvertAPIPACKAGE_DEACTIVATEToPACKAGE_DEACTIVATENotificationEvent()
        {
            apiNotificationEvent1 = "PACKAGE_DEACTIVATE";
            sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent();

            Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue());
        }
Ejemplo n.º 3
0
        public void ConvertAPISIGNER_COMPLETEToSIGNER_COMPLETENotificationEvent()
        {
            apiNotificationEvent1 = "SIGNER_COMPLETE";
            sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent();

            Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue());
        }
Ejemplo n.º 4
0
        public void ConvertAPIDOCUMENT_SIGNEDToDOCUMENT_SIGNEDNotificationEvent()
        {
            apiNotificationEvent1 = "DOCUMENT_SIGNED";
            sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent();

            Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue());
        }
Ejemplo n.º 5
0
        public void ConvertSDKPACKAGE_ARCHIVEToAPIPACKAGE_ARCHIVE()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.PACKAGE_ARCHIVE;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("PACKAGE_ARCHIVE", apiNotificationEvent1);
        }
Ejemplo n.º 6
0
        public void ConvertSDKTEMPLATE_CREATEToAPITEMPLATE_CREATE()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.TEMPLATE_CREATE;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("TEMPLATE_CREATE", apiNotificationEvent1);
        }
Ejemplo n.º 7
0
        public void ConvertSDKEMAIL_BOUNCEToAPIEMAIL_BOUNCE()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.EMAIL_BOUNCE;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("EMAIL_BOUNCE", apiNotificationEvent1);
        }
Ejemplo n.º 8
0
        public void ConvertSDKSIGNER_LOCKEDToAPISIGNER_LOCKED()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.SIGNER_LOCKED;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("SIGNER_LOCKED", apiNotificationEvent1);
        }
Ejemplo n.º 9
0
        public void ConvertSDKPACKAGE_READY_FOR_COMPLETEToAPIPACKAGE_READY_FOR_COMPLETE()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.PACKAGE_READY_FOR_COMPLETION;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("PACKAGE_READY_FOR_COMPLETE", apiNotificationEvent1);
        }
Ejemplo n.º 10
0
        public void ConvertSDKKBA_FAILUREToAPIKBA_FAILURE()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.KBA_FAILURE;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("KBA_FAILURE", apiNotificationEvent1);
        }
Ejemplo n.º 11
0
        public void ConvertSDKROLE_REASSIGNToAPIROLE_REASSIGN()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.ROLE_REASSIGN;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("ROLE_REASSIGN", apiNotificationEvent1);
        }
Ejemplo n.º 12
0
        public void ConvertSDKDOCUMENT_SIGNEDToAPIDOCUMENT_SIGNED()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.DOCUMENT_SIGNED;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("DOCUMENT_SIGNED", apiNotificationEvent1);
        }
Ejemplo n.º 13
0
        public void ConvertSDKREJECTEDToAPIREJECTED()
        {
            sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.PACKAGE_COMPLETE;
            apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent();

            Assert.AreEqual("PACKAGE_COMPLETE", apiNotificationEvent1);
        }
Ejemplo n.º 14
0
        public void ConvertAPIUnknonwnValueToUnrecognizedNotificationEvent()
        {
            apiNotificationEvent1 = "NEWLY_ADDED_NOTIFICATION_EVENT";
            sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent();

            Assert.AreEqual(sdkNotificationEvent1.getApiValue(), apiNotificationEvent1);
        }
Ejemplo n.º 15
0
 public EventNotificationConfigBuilder ForEvent(NotificationEvent notificationEvent)
 {
     events.Add(notificationEvent);
     return(this);
 }
Ejemplo n.º 16
0
 public void AddEvent(NotificationEvent notificationEvent)
 {
     this.notificationEvents.Add(notificationEvent);
 }