Esempio n. 1
0
        public void ConvertSDKReadToAPIRead()
        {
            sdkMessageStatus1 = OneSpanSign.Sdk.MessageStatus.READ;
            apiMessageStatus1 = new MessageStatusConverter(sdkMessageStatus1).ToAPIMessageStatus();

            Assert.AreEqual("READ", apiMessageStatus1);
        }
Esempio n. 2
0
        public void ConvertSDKTrashedToAPITrashed()
        {
            sdkMessageStatus1 = OneSpanSign.Sdk.MessageStatus.TRASHED;
            apiMessageStatus1 = new MessageStatusConverter(sdkMessageStatus1).ToAPIMessageStatus();

            Assert.AreEqual("TRASHED", apiMessageStatus1);
        }
Esempio n. 3
0
        public void ConvertSDKNewToAPINew()
        {
            sdkMessageStatus1 = OneSpanSign.Sdk.MessageStatus.NEW;
            apiMessageStatus1 = new MessageStatusConverter(sdkMessageStatus1).ToAPIMessageStatus();

            Assert.AreEqual("NEW", apiMessageStatus1);
        }
Esempio n. 4
0
        public void ConvertAPIUnknonwnValueToUnrecognizedMessageStatus()
        {
            apiMessageStatus1 = "NEWLY_ADDED_MESSAGE_STATUS";
            sdkMessageStatus1 = new MessageStatusConverter(apiMessageStatus1).ToSDKMessageStatus();

            Assert.AreEqual(apiMessageStatus1, sdkMessageStatus1.getApiValue());
        }
Esempio n. 5
0
        public void ConvertAPICHALLENGEToCHALLENGEMessageStatus()
        {
            string expectedAPIValue = "TRASHED";

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

            Assert.AreEqual(expectedAPIValue, sdkMessageStatus1.getApiValue());
        }
Esempio n. 6
0
        public void ConvertAPIReadToSDKRead()
        {
            string expectedAPIValue = "READ";

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

            Assert.AreEqual(expectedAPIValue, sdkMessageStatus1.getApiValue());
        }
Esempio n. 7
0
        public void ConvertAPINewToSDKNew()
        {
            string expectedAPIValue = "NEW";

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

            Assert.AreEqual(expectedAPIValue, sdkMessageStatus1.getApiValue());
        }
Esempio n. 8
0
 public Message(MessageStatus status, string content, Signer from)
 {
     Status  = status;
     Content = content;
     From    = from;
 }