public void Should_add_endpoint_to_room()
        {
            var endpointId   = Guid.NewGuid();
            var roomEndpoint = new RoomEndpoint(endpointId);
            var room         = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.Participant, false);

            room.AddEndpoint(roomEndpoint);

            room.RoomEndpoints.Count.Should().Be(1);
            room.RoomEndpoints[0].EndpointId.Should().Be(endpointId);
        }
        public void Should_update_room_status_to_closed_on_last_endpoint_remove()
        {
            var room         = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.Participant, false);
            var roomEndpoint = new RoomEndpoint(Guid.NewGuid());

            room.RoomEndpoints.Add(roomEndpoint);
            room.Status.Should().Be(RoomStatus.Live);

            room.RemoveEndpoint(roomEndpoint);

            room.Status.Should().Be(RoomStatus.Closed);
        }
        public void Should_remove_endpoint_from_room()
        {
            var endpointId   = Guid.NewGuid();
            var roomEndpoint = new RoomEndpoint(endpointId);
            var room         = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.Participant, false);

            room.AddEndpoint(roomEndpoint);
            var beforeCount = room.RoomEndpoints.Count;

            room.RemoveEndpoint(roomEndpoint);

            room.RoomEndpoints.Count.Should().Be(beforeCount - 1);
        }
        public void Should_not_add_existing_endpoint_to_room_twice()
        {
            var endpointId   = Guid.NewGuid();
            var roomEndpoint = new RoomEndpoint(endpointId);
            var room         = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.Participant, false);

            room.AddEndpoint(roomEndpoint);
            var beforeCount = room.RoomEndpoints.Count;

            room.AddEndpoint(roomEndpoint);

            room.RoomEndpoints.Count.Should().Be(beforeCount);
        }