예제 #1
0
        public void ConvertSDKRegularToAPIRegular()
        {
            sdkSenderType1 = Silanis.ESL.SDK.SenderType.REGULAR;
            apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType();

            Assert.AreEqual("REGULAR", apiSenderType1);
        }
예제 #2
0
        public void ConvertSDKManagerToAPIManager()
        {
            sdkSenderType1 = Silanis.ESL.SDK.SenderType.MANAGER;
            apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType();

            Assert.AreEqual("MANAGER", apiSenderType1);
        }
예제 #3
0
        public void ConvertAPIManagerToManagerSenderType()
        {
            apiSenderType1 = "MANAGER";
            sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType();

            Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1);
        }
예제 #4
0
        public void ConvertAPIUnknonwnValueToUnrecognizedSenderType()
        {
            apiSenderType1 = "NEWLY_ADDED_SENDER_TYPE";
            sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType();

            Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1);
        }
예제 #5
0
        public void ConvertAPIRegularToRegularSenderType()
        {
            apiSenderType1 = "REGULAR";
            sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType();

            Assert.AreEqual(sdkSenderType1.getApiValue(), apiSenderType1);
        }
예제 #6
0
        public void ConvertSDKToAPI()
        {
            sdkSenderType1 = CreateTypicalSDKSenderType();
            apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType();

            Assert.AreEqual(apiSenderType1.ToString(), sdkSenderType1.ToString());
        }
예제 #7
0
        public void ConvertAPIToSDK()
        {
            apiSenderType1 = CreateTypicalAPISenderType();
            sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType();

            Assert.AreEqual(sdkSenderType1.ToString(), apiSenderType1.ToString());
        }
		public void ConvertSDKToAPI()
		{
			sdkSenderType1 = CreateTypicalSDKSenderType();
			apiSenderType1 = new SenderTypeConverter(sdkSenderType1).ToAPISenderType();

			Assert.AreEqual(apiSenderType1.ToString(), sdkSenderType1.ToString());
		}
		public void ConvertAPIToSDK()
		{
			apiSenderType1 = CreateTypicalAPISenderType();
			sdkSenderType1 = new SenderTypeConverter(apiSenderType1).ToSDKSenderType();

			Assert.AreEqual(sdkSenderType1.ToString(), apiSenderType1.ToString());
		}
예제 #10
0
		public Sender()
        {
            status = SenderStatus.INVITED;
            type = SenderType.REGULAR;
        }