public void ConvertSDKToAPI() { sdkSenderStatus1 = CreateTypicalSDKSenderStatus(); apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus(); Assert.AreEqual(apiSenderStatus1.ToString(), sdkSenderStatus1.ToString()); }
public void ConvertAPIToSDK() { apiSenderStatus1 = CreateTypicalAPISenderStatus(); sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(sdkSenderStatus1.ToString(), apiSenderStatus1.ToString()); }
/// <summary> /// Construct with API SenderStatus object involved in conversion. /// </summary> /// <param name="apiSenderStatus">API sender status.</param> public SenderStatusConverter(Silanis.ESL.API.SenderStatus apiSenderStatus) { this.apiSenderStatus = apiSenderStatus; }