public void ConvertAPIROLE_REASSIGNToROLE_REASSIGNNotificationEvent() { apiNotificationEvent1 = "ROLE_REASSIGN"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertAPIPACKAGE_DEACTIVATEToPACKAGE_DEACTIVATENotificationEvent() { apiNotificationEvent1 = "PACKAGE_DEACTIVATE"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertAPISIGNER_COMPLETEToSIGNER_COMPLETENotificationEvent() { apiNotificationEvent1 = "SIGNER_COMPLETE"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertAPIDOCUMENT_SIGNEDToDOCUMENT_SIGNEDNotificationEvent() { apiNotificationEvent1 = "DOCUMENT_SIGNED"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertSDKPACKAGE_ARCHIVEToAPIPACKAGE_ARCHIVE() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.PACKAGE_ARCHIVE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("PACKAGE_ARCHIVE", apiNotificationEvent1); }
public void ConvertSDKTEMPLATE_CREATEToAPITEMPLATE_CREATE() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.TEMPLATE_CREATE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("TEMPLATE_CREATE", apiNotificationEvent1); }
public void ConvertSDKEMAIL_BOUNCEToAPIEMAIL_BOUNCE() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.EMAIL_BOUNCE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("EMAIL_BOUNCE", apiNotificationEvent1); }
public void ConvertSDKSIGNER_LOCKEDToAPISIGNER_LOCKED() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.SIGNER_LOCKED; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("SIGNER_LOCKED", apiNotificationEvent1); }
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); }
public void ConvertSDKKBA_FAILUREToAPIKBA_FAILURE() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.KBA_FAILURE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("KBA_FAILURE", apiNotificationEvent1); }
public void ConvertSDKROLE_REASSIGNToAPIROLE_REASSIGN() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.ROLE_REASSIGN; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("ROLE_REASSIGN", apiNotificationEvent1); }
public void ConvertSDKDOCUMENT_SIGNEDToAPIDOCUMENT_SIGNED() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.DOCUMENT_SIGNED; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("DOCUMENT_SIGNED", apiNotificationEvent1); }
public void ConvertSDKREJECTEDToAPIREJECTED() { sdkNotificationEvent1 = OneSpanSign.Sdk.NotificationEvent.PACKAGE_COMPLETE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("PACKAGE_COMPLETE", apiNotificationEvent1); }
public void ConvertAPIUnknonwnValueToUnrecognizedNotificationEvent() { apiNotificationEvent1 = "NEWLY_ADDED_NOTIFICATION_EVENT"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(sdkNotificationEvent1.getApiValue(), apiNotificationEvent1); }
public EventNotificationConfigBuilder ForEvent(NotificationEvent notificationEvent) { events.Add(notificationEvent); return(this); }
public void AddEvent(NotificationEvent notificationEvent) { this.notificationEvents.Add(notificationEvent); }