public void ThenTheSymphonyConferenceShouldIncludeASpaceWithThirdPartyIdXYZ_Sabre_Room()
        {
            List <Participant> participants = _meetings[0].Participants;
            SpaceSyncPoint     ssp          = _symphonyApi.GetRoomSyncPoint(participants[0].SpaceId);

            Assert.AreEqual(ssp.ThirdPartyId, "XYZ_Sabre_room");
        }
 public void InitializeRooms(int SyncedRooms)
 {
     for (int i = 0; i < SyncedRooms; ++i)
     {
         SpaceSyncPoint room = CreateSyncPointFromInt(i);
         this._spaceSyncPoints.Add(room);
     }
 }
        internal void AddSpaceSyncPoint(SpaceSyncPoint ssp)
        {
            SpaceSyncPoint existingSpace = FindRoomSyncPoint(ssp.ThirdPartyId, string.Empty);

            if (existingSpace.ThirdPartyId == null)
            {
                this._spaceSyncPoints.Add(ssp);
            }
        }
        public SpaceSyncPoint FindRoomSyncPoint(string ThirdPartyId, string enterpriseSystemName)
        {
            SpaceSyncPoint result = _spaceSyncPoints.Find(ssp => ssp.ThirdPartyId == ThirdPartyId);

            if (result == null)
            {
                result = new SpaceSyncPoint();
            }
            return(result);
        }
        public void WhenTheSVMMeetingIncludesASVMRoomWithIdXYZ_Sabre_Room()
        {
            SpaceSyncPoint ssp = new SpaceSyncPoint();

            ssp.ThirdPartyId = "XYZ_Sabre_room";
            ssp.SpaceId      = Guid.NewGuid();

            _repository.AddSpaceSyncPoint(ssp);
            _dsReport.Tables["Meeting Report"].Rows[0]["roomId"] = ssp.ThirdPartyId;
        }
        private SpaceSyncPoint CreateSyncPointFromInt(int i)
        {
            SpaceSyncPoint ssp = new SpaceSyncPoint();

            ssp.ThirdPartyId   = (i + 1).ToString();
            ssp.SpaceId        = Guid.NewGuid();
            ssp.SubscriptionId = string.Empty;
            ssp.Watermark      = string.Empty;
            ssp.Name           = "Test Room " + i + " for Sync Point";
            return(ssp);
        }
示例#7
0
        private Participant ConvertParticipant(SvmMeeting meeting)
        {
            Participant p = new Participant();

            p.Schedule          = new ConferenceSchedule();
            p.Schedule.UtcSetup = meeting.StartTimeInGMT;
            p.Schedule.UtcStart = meeting.StartTimeInGMT;
            p.Schedule.UtcEnd   = meeting.EndTimeInGMT;
            SpaceSyncPoint sp = this._syncApi.GetRoomSyncPoint(meeting.RoomId, this.EnterpriseSystemName);

            p.SpaceId         = sp.SpaceId;
            p.ParticipantType = (p.SpaceId == Guid.Empty) ? Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ParticipantType.UnprofiledSpace : Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ParticipantType.ProfiledSpace;
            return(p);
        }
 public void When_I_request_the_sync_point_from_the_Symphony_Repository_Service_with_ThirdPartyId(string ThirdPartyId)
 {
     _thirdPartyId = ThirdPartyId;
     _roomSync     = _api.GetRoomSyncPoint(ThirdPartyId, _enterpriseSystem);
 }