public void ConvertSDKRegularToAPIRegular() { sdkSenderType1 = Silanis.ESL.SDK.SenderType.REGULAR; apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType(); Assert.AreEqual("REGULAR", apiSenderType1); }
public void ConvertSDKManagerToAPIManager() { sdkSenderType1 = Silanis.ESL.SDK.SenderType.MANAGER; apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType(); Assert.AreEqual("MANAGER", apiSenderType1); }
public void ConvertAPIManagerToManagerSenderType() { apiSenderType1 = "MANAGER"; sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType(); Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1); }
public void ConvertAPIUnknonwnValueToUnrecognizedSenderType() { apiSenderType1 = "NEWLY_ADDED_SENDER_TYPE"; sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType(); Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1); }
public void ConvertAPIRegularToRegularSenderType() { apiSenderType1 = "REGULAR"; sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType(); Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1); }
public void ConvertSDKToAPI() { sdkSenderType1 = CreateTypicalSDKSenderType(); apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType(); Assert.AreEqual(apiSenderType1.ToString(), sdkSenderType1.ToString()); }
public void ConvertAPIToSDK() { apiSenderType1 = CreateTypicalAPISenderType(); sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType(); Assert.AreEqual(sdkSenderType1.ToString(), apiSenderType1.ToString()); }
public Sender() { status = SenderStatus.INVITED; type = SenderType.REGULAR; }