public void ConvertSDKToAPI()
		{
			sdkSenderStatus1 = CreateTypicalSDKSenderStatus();
			apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus();

			Assert.AreEqual(apiSenderStatus1.ToString(), sdkSenderStatus1.ToString());
        }
示例#2
0
        public void ConvertSDKACTIVEToAPIACTIVE()
        {
            sdkSenderStatus1 = Silanis.ESL.SDK.SenderStatus.ACTIVE;
            apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus();

            Assert.AreEqual("ACTIVE", apiSenderStatus1);
        }
		public void ConvertAPIToSDK()
		{
			apiSenderStatus1 = CreateTypicalAPISenderStatus();
			sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus();

			Assert.AreEqual(sdkSenderStatus1.ToString(), apiSenderStatus1.ToString());
		}
示例#4
0
        public void ConvertSDKLOCKEDToAPILOCKED()
        {
            sdkSenderStatus1 = Silanis.ESL.SDK.SenderStatus.LOCKED;
            apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus();

            Assert.AreEqual("LOCKED", apiSenderStatus1);
        }
示例#5
0
        public void ConvertAPIUnknonwnValueToUnrecognizedSenderStatus()
        {
            apiSenderStatus1 = "NEWLY_ADDED_SENDER_STATUS";
            sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus();

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

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

            Assert.AreEqual(apiSenderStatus1, sdkSenderStatus1.getApiValue());
        }
示例#8
0
        public void ConvertSDKToAPI()
        {
            sdkSenderStatus1 = CreateTypicalSDKSenderStatus();
            apiSenderStatus1 = new SenderStatusConverter(sdkSenderStatus1).ToAPISenderStatus();

            Assert.AreEqual(apiSenderStatus1.ToString(), sdkSenderStatus1.ToString());
        }
示例#9
0
        public void ConvertAPIToSDK()
        {
            apiSenderStatus1 = CreateTypicalAPISenderStatus();
            sdkSenderStatus1 = new SenderStatusConverter(apiSenderStatus1).ToSDKSenderStatus();

            Assert.AreEqual(sdkSenderStatus1.ToString(), apiSenderStatus1.ToString());
        }
示例#10
0
		public Sender()
        {
            status = SenderStatus.INVITED;
            type = SenderType.REGULAR;
        }
 public AccountMemberBuilder WithStatus(SenderStatus status)
 {
     this.status = status;
     return(this);
 }