public void ConvertSDKManagerToAPIManager()
        {
            sdkSenderType1 = OneSpanSign.Sdk.SenderType.MANAGER;
            apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType();

            Assert.AreEqual("MANAGER", apiSenderType1);
        }
        public void ConvertSDKRegularToAPIRegular()
        {
            sdkSenderType1 = OneSpanSign.Sdk.SenderType.REGULAR;
            apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType();

            Assert.AreEqual("REGULAR", apiSenderType1);
        }
        public void ConvertAPIUnknonwnValueToUnrecognizedSenderType()
        {
            apiSenderType1 = "NEWLY_ADDED_SENDER_TYPE";
            sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType();

            Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1);
        }
        public void ConvertAPIManagerToManagerSenderType()
        {
            apiSenderType1 = "MANAGER";
            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);
        }
Exemple #6
0
 public Sender()
 {
     status = SenderStatus.INVITED;
     type   = SenderType.REGULAR;
 }