public void ConvertSDKToAPI() { sdkSenderStatus1 = CreateTypicalSDKSenderStatus(); apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus(); Assert.AreEqual(apiSenderStatus1.ToString(), sdkSenderStatus1.ToString()); }
public void ConvertSDKACTIVEToAPIACTIVE() { sdkSenderStatus1 = Silanis.ESL.SDK.SenderStatus.ACTIVE; apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus(); Assert.AreEqual("ACTIVE", apiSenderStatus1); }
public void ConvertAPIToSDK() { apiSenderStatus1 = CreateTypicalAPISenderStatus(); sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(sdkSenderStatus1.ToString(), apiSenderStatus1.ToString()); }
public void ConvertSDKLOCKEDToAPILOCKED() { sdkSenderStatus1 = Silanis.ESL.SDK.SenderStatus.LOCKED; apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus(); Assert.AreEqual("LOCKED", apiSenderStatus1); }
public void ConvertAPIUnknonwnValueToUnrecognizedSenderStatus() { apiSenderStatus1 = "NEWLY_ADDED_SENDER_STATUS"; sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(sdkSenderStatus1.getApiValue(), apiSenderStatus1); }
public void ConvertAPILOCKEDToLOCKEDSenderStatus() { apiSenderStatus1 = "LOCKED"; sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue()); }
public void ConvertAPIACTIVEoACTIVESenderStatus() { apiSenderStatus1 = "ACTIVE"; sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue()); }
public Sender() { status = SenderStatus.INVITED; type = SenderType.REGULAR; }
public AccountMemberBuilder WithStatus(SenderStatus status) { this.status = status; return(this); }