public void ConvertSDKChallengeToAPIChallenge() { sdkAuthScheme1 = OneSpanSign.Sdk.AuthenticationMethod.CHALLENGE; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual("CHALLENGE", apiAuthScheme1); }
public void ConvertSDKSMSToAPISMS() { sdkAuthScheme1 = OneSpanSign.Sdk.AuthenticationMethod.SMS; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual("SMS", apiAuthScheme1); }
public void ConvertSDKToAPI() { sdkAuthScheme1 = OneSpanSign.Sdk.AuthenticationMethod.EMAIL; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual(AuthenticationMethod.EMAIL.getApiValue(), apiAuthScheme1); }
public void ConvertSDKEmailToAPINone() { sdkAuthScheme1 = OneSpanSign.Sdk.AuthenticationMethod.EMAIL; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual("NONE", apiAuthScheme1); }
public void ConvertAPIUnknonwnValueToUnrecognizedAuthenticationMethod() { apiAuthScheme1 = "NEWLY_ADDED_AUTHENTICATION_METHOD"; sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.getApiValue(), apiAuthScheme1); }
public void ConvertAPIKBAToKBAAuthenticationMethod() { apiAuthScheme1 = "KBA"; sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.getApiValue(), apiAuthScheme1); }
public void ConvertAPICHALLENGEToCHALLENGEAuthenticationMethod() { apiAuthScheme1 = "CHALLENGE"; sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.getApiValue(), apiAuthScheme1); }
public void ConvertAPINONEToEMAILAuthenticationMethod() { apiAuthScheme1 = "NONE"; sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.getApiValue(), apiAuthScheme1); }
public void ConvertAPIToSDK() { apiAuthScheme1 = OneSpanSign.Sdk.AuthenticationMethod.SMS.getApiValue(); sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.getApiValue(), apiAuthScheme1); }
public Authentication(AuthenticationMethod method) { this.method = method; }
public Authentication(AuthenticationMethod method, string phoneNumber, IdvWorkflow idvWorkflow) : this(method) { this.PhoneNumber = phoneNumber; this.IdvWorkflow = idvWorkflow; }
public Authentication(AuthenticationMethod method, string phoneNumber) : this(method) { this.PhoneNumber = phoneNumber; }