Ejemplo n.º 1
0
        public void should_return_meeting_room_when_all_set()
        {
            // Arrange
            var conference = new ConferenceBuilder()
                             .WithMeetingRoom("https://poc.node.com", "*****@*****.**", true)
                             .Build();

            // Act/Assert
            conference.GetMeetingRoom().Should().NotBeNull();
        }
Ejemplo n.º 2
0
        public void should_return_null_when_pexip_node_not_set()
        {
            // Arrange
            var conference = new ConferenceBuilder()
                             .WithMeetingRoom(null, "*****@*****.**", true)
                             .Build();

            // Act/Assert
            conference.GetMeetingRoom().Should().BeNull();
        }
Ejemplo n.º 3
0
        public void should_return_null_when_admin_uri_not_set()
        {
            // Arrange
            var conference = new ConferenceBuilder()
                             .Build();

            conference.UpdateMeetingRoom(null, "judgeUri", "participantUri", "pexipNode", "telephoneConferenceId");

            // Act/Assert
            conference.GetMeetingRoom().Should().BeNull();
        }
Ejemplo n.º 4
0
        public void Should_add_room_details()
        {
            var conference = new ConferenceBuilder().Build();

            conference.GetMeetingRoom().Should().BeNull();

            const string adminUri              = "https://poc.node.com/viju/#/[email protected]&output=embed";
            const string judgeUri              = "https://poc.node.com/viju/#/[email protected]&output=embed";
            const string participantUri        = "https://poc.node.com/viju/#/[email protected]&output=embed";
            const string pexipNode             = "poc.node.com";
            const string telephoneConferenceId = "12345678";

            conference.UpdateMeetingRoom(adminUri, judgeUri, participantUri, pexipNode, telephoneConferenceId);

            conference.GetMeetingRoom().Should().NotBeNull();
            var meetingRoom = conference.GetMeetingRoom();

            meetingRoom.AdminUri.Should().Be(adminUri);
            meetingRoom.JudgeUri.Should().Be(judgeUri);
            meetingRoom.ParticipantUri.Should().Be(participantUri);
            meetingRoom.PexipNode.Should().Be(pexipNode);
        }
Ejemplo n.º 5
0
        public void Should_not_have_room_defined_by_default()
        {
            var conference = new ConferenceBuilder().Build();

            conference.GetMeetingRoom().Should().BeNull();
        }