public void ConvertSDKFailedToAPIFailed() { sdkKnowledgeBasedAuthenticationStatus1 = OneSpanSign.Sdk.KnowledgeBasedAuthenticationStatus.FAILED; apiKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(sdkKnowledgeBasedAuthenticationStatus1).ToAPIKnowledgeBasedAuthenticationStatus(); Assert.AreEqual("FAILED", apiKnowledgeBasedAuthenticationStatus1); }
public void ConvertSDKChallengeToAPIChallenge() { sdkKnowledgeBasedAuthenticationStatus1 = OneSpanSign.Sdk.KnowledgeBasedAuthenticationStatus.PASSED; apiKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(sdkKnowledgeBasedAuthenticationStatus1).ToAPIKnowledgeBasedAuthenticationStatus(); Assert.AreEqual("PASSED", apiKnowledgeBasedAuthenticationStatus1); }
public void ConvertSDKNotYetAttemptedToAPINotYetAttempted() { sdkKnowledgeBasedAuthenticationStatus1 = OneSpanSign.Sdk.KnowledgeBasedAuthenticationStatus.NOT_YET_ATTEMPTED; apiKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(sdkKnowledgeBasedAuthenticationStatus1).ToAPIKnowledgeBasedAuthenticationStatus(); Assert.AreEqual("NOT_YET_ATTEMPTED", apiKnowledgeBasedAuthenticationStatus1); }
public void ConvertAPIUnknonwnValueToUnrecognizedKnowledgeBasedAuthenticationStatus() { apiKnowledgeBasedAuthenticationStatus1 = "NEWLY_ADDED_KBA_STATUS"; sdkKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(apiKnowledgeBasedAuthenticationStatus1).ToSDKKnowledgeBasedAuthenticationStatus(); Assert.AreEqual(sdkKnowledgeBasedAuthenticationStatus1.getApiValue(), apiKnowledgeBasedAuthenticationStatus1); }
public void ConvertAPIPassedToSDKPassed() { apiKnowledgeBasedAuthenticationStatus1 = "PASSED"; sdkKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(apiKnowledgeBasedAuthenticationStatus1).ToSDKKnowledgeBasedAuthenticationStatus(); Assert.AreEqual(sdkKnowledgeBasedAuthenticationStatus1.getApiValue(), apiKnowledgeBasedAuthenticationStatus1); }
public void ConvertAPIFailedToSDKFailed() { apiKnowledgeBasedAuthenticationStatus1 = "FAILED"; sdkKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(apiKnowledgeBasedAuthenticationStatus1).ToSDKKnowledgeBasedAuthenticationStatus(); Assert.AreEqual(apiKnowledgeBasedAuthenticationStatus1, sdkKnowledgeBasedAuthenticationStatus1.getApiValue()); }
public void ConvertAPINotYetAttemptedDToSDKNotYetAttempted() { apiKnowledgeBasedAuthenticationStatus1 = "NOT_YET_ATTEMPTED"; sdkKnowledgeBasedAuthenticationStatus1 = new KnowledgeBasedAuthenticationStatusConverter(apiKnowledgeBasedAuthenticationStatus1).ToSDKKnowledgeBasedAuthenticationStatus(); Assert.AreEqual(apiKnowledgeBasedAuthenticationStatus1, sdkKnowledgeBasedAuthenticationStatus1.getApiValue()); }