public void ConvertSDKUnrecognizedNotificationEventToAPIUnknownValue() { apiNotificationEvent1 = "NEWLY_ADDED_REQUIREMENT_STATUS"; NotificationEvent unrecognizedNotificationEvent = NotificationEvent.valueOf(apiNotificationEvent1); string acutalApiValue = new EventNotificationConverter(unrecognizedNotificationEvent).ToAPICallbackEvent(); Assert.AreEqual(apiNotificationEvent1, acutalApiValue); }
public void whenBuildingNotificationEventWithAPIValueSIGNER_COMPLETEThenSIGNER_COMPLETENotificationEventIsReturned() { string expectedSDKValue = "SIGNER_COMPLETE"; NotificationEvent classUnderTest = NotificationEvent.valueOf("SIGNER_COMPLETE"); string actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingNotificationEventWithAPIValuePACKAGE_DECLINEThenPACKAGE_DECLINENotificationEventIsReturned() { string expectedSDKValue = "PACKAGE_DECLINE"; NotificationEvent classUnderTest = NotificationEvent.valueOf("PACKAGE_DECLINE"); string actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingNotificationEventWithUnknownAPIValueThenUNRECOGNIZEDNotificationEventIsReturned() { string expectedSDKValue = "UNRECOGNIZED"; NotificationEvent classUnderTest = NotificationEvent.valueOf("ThisNotificationEventDoesNotExistInSDK"); String actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingNotificationEventWithAPIValueROLE_REASSIGNThenROLE_REASSIGNNotificationEventIsReturned() { string expectedSDKValue = "ROLE_REASSIGN"; NotificationEvent classUnderTest = NotificationEvent.valueOf("ROLE_REASSIGN"); string actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }
public void whenBuildingNotificationEventWithAPIValueDOCUMENT_SIGNEDThenDOCUMENT_SIGNEDNotificationEventIsReturned() { string expectedSDKValue = "DOCUMENT_SIGNED"; NotificationEvent classUnderTest = NotificationEvent.valueOf("DOCUMENT_SIGNED"); string actualSDKValue = classUnderTest.getSdkValue(); Assert.AreEqual(expectedSDKValue, actualSDKValue); }