public void ConvertSDKDOCUMENT_SIGNEDToAPIDOCUMENT_SIGNED() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.DOCUMENT_SIGNED; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("DOCUMENT_SIGNED", apiNotificationEvent1); }
public void ConvertAPIPACKAGE_DEACTIVATEToPACKAGE_DEACTIVATENotificationEvent() { apiNotificationEvent1 = "PACKAGE_DEACTIVATE"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertSDKTEMPLATE_CREATEToAPITEMPLATE_CREATE() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.TEMPLATE_CREATE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("TEMPLATE_CREATE", apiNotificationEvent1); }
public void ConvertSDKROLE_REASSIGNToAPIROLE_REASSIGN() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.ROLE_REASSIGN; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("ROLE_REASSIGN", apiNotificationEvent1); }
public void convertAPIToSDK() { apiCallbackEvent1 = createTypicalAPICallbackEvent(); sdkNotificationEvent1 = new EventNotificationConverter(apiCallbackEvent1).ToSDKNotificationEvent(); Assert.AreEqual(sdkNotificationEvent1.ToString(), apiCallbackEvent1.ToString()); }
public void ConvertAPIDOCUMENT_SIGNEDToDOCUMENT_SIGNEDNotificationEvent() { apiNotificationEvent1 = "DOCUMENT_SIGNED"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertAPIROLE_REASSIGNToROLE_REASSIGNNotificationEvent() { apiNotificationEvent1 = "ROLE_REASSIGN"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertSDKSIGNER_LOCKEDToAPISIGNER_LOCKED() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.SIGNER_LOCKED; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("SIGNER_LOCKED", apiNotificationEvent1); }
public void ConvertAPISIGNER_COMPLETEToSIGNER_COMPLETENotificationEvent() { apiNotificationEvent1 = "SIGNER_COMPLETE"; sdkNotificationEvent1 = new EventNotificationConverter(apiNotificationEvent1).ToSDKNotificationEvent(); Assert.AreEqual(apiNotificationEvent1, sdkNotificationEvent1.getApiValue()); }
public void ConvertSDKEMAIL_BOUNCEToAPIEMAIL_BOUNCE() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.EMAIL_BOUNCE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("EMAIL_BOUNCE", apiNotificationEvent1); }
public void ConvertSDKPACKAGE_ATTACHMENTToAPIPACKAGE_ATTACHMENT() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.PACKAGE_ATTACHMENT; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("PACKAGE_ATTACHMENT", apiNotificationEvent1); }
public void ConvertSDKPACKAGE_RESTOREToAPIPACKAGE_RESTORE() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.PACKAGE_RESTORE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("PACKAGE_RESTORE", apiNotificationEvent1); }
public void ConvertSDKKBA_FAILUREToAPIKBA_FAILURE() { sdkNotificationEvent1 = Silanis.ESL.SDK.NotificationEvent.KBA_FAILURE; apiNotificationEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual("KBA_FAILURE", apiNotificationEvent1); }
public void convertSDKToAPI() { sdkNotificationEvent1 = createTypicalSDKNotificationEvent(); apiCallbackEvent1 = new EventNotificationConverter(sdkNotificationEvent1).ToAPICallbackEvent(); Assert.AreEqual(apiCallbackEvent1.ToString(), sdkNotificationEvent1.ToString()); }
public void ConvertSDKREJECTEDToAPIREJECTED() { sdkNotificationEvent1 = Silanis.ESL.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); }
private static CallbackEvent ToAPICallbackEvent(NotificationEvent notificationEvent) { switch (notificationEvent) { case NotificationEvent.PACKAGE_OPT_OUT: return(CallbackEvent.PACKAGE_OPT_OUT); case NotificationEvent.PACKAGE_COMPLETE: return(CallbackEvent.PACKAGE_COMPLETE); case NotificationEvent.PACKAGE_ACTIVATE: return(CallbackEvent.PACKAGE_ACTIVATE); case NotificationEvent.PACKAGE_CREATE: return(CallbackEvent.PACKAGE_CREATE); case NotificationEvent.PACKAGE_DEACTIVATE: return(CallbackEvent.PACKAGE_DEACTIVATE); case NotificationEvent.PACKAGE_DECLINE: return(CallbackEvent.PACKAGE_DECLINE); case NotificationEvent.PACKAGE_DELETE: return(CallbackEvent.PACKAGE_DELETE); case NotificationEvent.PACKAGE_READY_FOR_COMPLETION: return(CallbackEvent.PACKAGE_READY_FOR_COMPLETE); case NotificationEvent.PACKAGE_RESTORE: return(CallbackEvent.PACKAGE_RESTORE); case NotificationEvent.PACKAGE_TRASH: return(CallbackEvent.PACKAGE_TRASH); case NotificationEvent.ROLE_REASSIGN: return(CallbackEvent.ROLE_REASSIGN); default: throw new InvalidCastException(); } }
public void AddEvent(NotificationEvent notificationEvent) { this.notificationEvents.Add(notificationEvent); }
public EventNotificationConfigBuilder ForEvent(NotificationEvent notificationEvent) { events.Add(notificationEvent); return(this); }