public void ConvertAPIToSDK() { apiAuthScheme1 = CreateTypicalAPIAuthScheme(); sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.ToString(), apiAuthScheme1.ToString()); }
public void ConvertSDKToAPI() { sdkAuthScheme1 = CreateTypicalSDKAuthScheme(); apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual(AuthScheme.NONE, apiAuthScheme1); }
public void ConvertSDKChallengeToAPIChallenge() { sdkAuthScheme1 = Silanis.ESL.SDK.AuthenticationMethod.CHALLENGE; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual("CHALLENGE", apiAuthScheme1); }
public void ConvertSDKSMSToAPISMS() { sdkAuthScheme1 = Silanis.ESL.SDK.AuthenticationMethod.SMS; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual("SMS", apiAuthScheme1); }
public void ConvertSDKToAPI() { sdkAuthScheme1 = Silanis.ESL.SDK.AuthenticationMethod.EMAIL; apiAuthScheme1 = new AuthenticationMethodConverter(sdkAuthScheme1).ToAPIAuthMethod(); Assert.AreEqual(AuthenticationMethod.EMAIL.getApiValue(), apiAuthScheme1); }
public void ConvertSDKEmailToAPINone() { sdkAuthScheme1 = Silanis.ESL.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 = Silanis.ESL.SDK.AuthenticationMethod.SMS.getApiValue(); sdkAuthScheme1 = new AuthenticationMethodConverter(apiAuthScheme1).ToSDKAuthMethod(); Assert.AreEqual(sdkAuthScheme1.getApiValue(), apiAuthScheme1); }
public Authentication(AuthenticationMethod method) { this.method = method; }