public void ConvertAPILOCKEDToLOCKEDSenderStatus() { apiSenderStatus1 = "LOCKED"; sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue()); }
public void ConvertAPIUnknonwnValueToUnrecognizedSenderStatus() { apiSenderStatus1 = "NEWLY_ADDED_SENDER_STATUS"; sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(sdkSenderStatus1.getApiValue(), apiSenderStatus1); }
public void ConvertAPIACTIVEoACTIVESenderStatus() { apiSenderStatus1 = "ACTIVE"; sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus(); Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue()); }
static SenderStatus() { allSenderStatus.Add(INVITED.getApiValue(), SenderStatus.INVITED); allSenderStatus.Add(ACTIVE.getApiValue(), SenderStatus.ACTIVE); allSenderStatus.Add(LOCKED.getApiValue(), SenderStatus.LOCKED); }