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()); }
/// <summary> /// Construct with API SenderType object involved in conversion. /// </summary> /// <param name="apiSenderType">API sender type.</param> public SenderTypeConverter(Silanis.ESL.API.SenderType apiSenderType) { this.apiSenderType = apiSenderType; }