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); }
static SenderType() { allSenderTypes.Add(REGULAR.getApiValue(), SenderType.REGULAR); allSenderTypes.Add(MANAGER.getApiValue(), SenderType.MANAGER); }