Beispiel #1
0
        public void ConvertSDKLOCKEDToAPILOCKED()
        {
            sdkSenderStatus1 = OneSpanSign.Sdk.SenderStatus.LOCKED;
            apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus();

            Assert.AreEqual("LOCKED", apiSenderStatus1);
        }
Beispiel #2
0
        public void ConvertSDKACTIVEToAPIACTIVE()
        {
            sdkSenderStatus1 = OneSpanSign.Sdk.SenderStatus.ACTIVE;
            apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus();

            Assert.AreEqual("ACTIVE", apiSenderStatus1);
        }
Beispiel #3
0
        public void ConvertAPIUnknonwnValueToUnrecognizedSenderStatus()
        {
            apiSenderStatus1 = "NEWLY_ADDED_SENDER_STATUS";
            sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus();

            Assert.AreEqual(sdkSenderStatus1.getApiValue(), apiSenderStatus1);
        }
Beispiel #4
0
        public void ConvertAPILOCKEDToLOCKEDSenderStatus()
        {
            apiSenderStatus1 = "LOCKED";
            sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus();

            Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue());
        }
Beispiel #5
0
        public void ConvertAPIACTIVEoACTIVESenderStatus()
        {
            apiSenderStatus1 = "ACTIVE";
            sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus();

            Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue());
        }
 public AccountMemberBuilder WithStatus(SenderStatus status)
 {
     this.status = status;
     return(this);
 }
Beispiel #7
0
 public Sender()
 {
     status = SenderStatus.INVITED;
     type   = SenderType.REGULAR;
 }