public void convertSDKToSDK()
 {
     sdkVirtualRoom1 = new VirtualRoom();
     sdkVirtualRoom2 = new VirtualRoomConverter(sdkVirtualRoom1).ToSDKVirtualRoom();
     Assert.IsNotNull(sdkVirtualRoom2);
     Assert.AreEqual(sdkVirtualRoom2, sdkVirtualRoom1);
 }
        public void convertSDKToAPI()
        {
            sdkVirtualRoom1 = buildSdkVirtualRoom();
            apiVirtualRoom1 = new VirtualRoomConverter(sdkVirtualRoom1).ToAPIVirtualRoom();

            Assert.IsNotNull(apiVirtualRoom1);
            Assert.AreEqual(apiVirtualRoom1.Video, sdkVirtualRoom1.Video);
            Assert.AreEqual(apiVirtualRoom1.VideoRecording, sdkVirtualRoom1.VideoRecording);
            Assert.AreEqual(apiVirtualRoom1.StartDatetime, sdkVirtualRoom1.StartDatetime);
            Assert.AreEqual(apiVirtualRoom1.HostUid, sdkVirtualRoom1.HostUid);
        }
        public void convertAPIToSDK()
        {
            apiVirtualRoom1 = buildApiVirtualRoom();
            sdkVirtualRoom1 = new VirtualRoomConverter(apiVirtualRoom1).ToSDKVirtualRoom();

            Assert.IsNotNull(sdkVirtualRoom1);
            Assert.AreEqual(sdkVirtualRoom1.Video, apiVirtualRoom1.Video);
            Assert.AreEqual(sdkVirtualRoom1.VideoRecording, apiVirtualRoom1.VideoRecording);
            Assert.AreEqual(sdkVirtualRoom1.StartDatetime, apiVirtualRoom1.StartDatetime);
            Assert.AreEqual(sdkVirtualRoom1.HostUid, apiVirtualRoom1.HostUid);
        }
Ejemplo n.º 4
0
        internal OneSpanSign.Sdk.VirtualRoom ToSDKVirtualRoom()
        {
            if (apiVirtualRoom == null)
            {
                return(sdkVirtualRoom);
            }
            sdkVirtualRoom                = new VirtualRoom();
            sdkVirtualRoom.Video          = apiVirtualRoom.Video;
            sdkVirtualRoom.VideoRecording = apiVirtualRoom.VideoRecording;
            sdkVirtualRoom.HostUid        = apiVirtualRoom.HostUid;
            sdkVirtualRoom.StartDatetime  = apiVirtualRoom.StartDatetime;

            return(sdkVirtualRoom);
        }
Ejemplo n.º 5
0
 public VirtualRoomConverter(VirtualRoom sdkVirtualRoom)
 {
     this.sdkVirtualRoom = sdkVirtualRoom;
 }
 public void convertNullSDKToSDK()
 {
     sdkVirtualRoom1 = null;
     converter       = new VirtualRoomConverter(sdkVirtualRoom1);
     Assert.IsNull(converter.ToSDKVirtualRoom());
 }