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()); }
static KnowledgeBasedAuthenticationStatus() { AllKnowledgeBasedAuthenticationStatus.Add(NOT_YET_ATTEMPTED.getApiValue(), NOT_YET_ATTEMPTED); AllKnowledgeBasedAuthenticationStatus.Add(PASSED.getApiValue(), PASSED); AllKnowledgeBasedAuthenticationStatus.Add(FAILED.getApiValue(), FAILED); AllKnowledgeBasedAuthenticationStatus.Add(INVALID_SIGNER.getApiValue(), INVALID_SIGNER); AllKnowledgeBasedAuthenticationStatus.Add(UPDATED.getApiValue(), UPDATED); AllKnowledgeBasedAuthenticationStatus.Add(LOCKED.getApiValue(), LOCKED); }
static KnowledgeBasedAuthenticationStatus() { allKnowledgeBasedAuthenticationStatus.Add(NOT_YET_ATTEMPTED.getApiValue(), KnowledgeBasedAuthenticationStatus.NOT_YET_ATTEMPTED); allKnowledgeBasedAuthenticationStatus.Add(PASSED.getApiValue(), KnowledgeBasedAuthenticationStatus.PASSED); allKnowledgeBasedAuthenticationStatus.Add(FAILED.getApiValue(), KnowledgeBasedAuthenticationStatus.FAILED); }