Example #1
0
        public void ConvertAPIUnknonwnValueToUnrecognizedMessageStatus()
        {
            apiMessageStatus1 = "NEWLY_ADDED_MESSAGE_STATUS";
            sdkMessageStatus1 = new MessageStatusConverter(apiMessageStatus1).ToSDKMessageStatus();

            Assert.AreEqual(apiMessageStatus1, sdkMessageStatus1.getApiValue());
        }
Example #2
0
        public void ConvertAPICHALLENGEToCHALLENGEMessageStatus()
        {
            string expectedAPIValue = "TRASHED";

            sdkMessageStatus1 = new MessageStatusConverter(expectedAPIValue).ToSDKMessageStatus();

            Assert.AreEqual(expectedAPIValue, sdkMessageStatus1.getApiValue());
        }
Example #3
0
        public void ConvertAPINewToSDKNew()
        {
            string expectedAPIValue = "NEW";

            sdkMessageStatus1 = new MessageStatusConverter(expectedAPIValue).ToSDKMessageStatus();

            Assert.AreEqual(expectedAPIValue, sdkMessageStatus1.getApiValue());
        }
Example #4
0
        public void ConvertAPIReadToSDKRead()
        {
            string expectedAPIValue = "READ";

            sdkMessageStatus1 = new MessageStatusConverter(expectedAPIValue).ToSDKMessageStatus();

            Assert.AreEqual(expectedAPIValue, sdkMessageStatus1.getApiValue());
        }
Example #5
0
 static MessageStatus()
 {
     allMessageStatus.Add(NEW.getApiValue(), MessageStatus.NEW);
     allMessageStatus.Add(READ.getApiValue(), MessageStatus.READ);
     allMessageStatus.Add(TRASHED.getApiValue(), MessageStatus.TRASHED);
 }