public void should_not_update_room_status_to_closed_when_room_type_is_civilian()
        {
            var room            = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.Civilian, false);
            var roomParticipant = new RoomParticipant(Guid.NewGuid());

            room.AddParticipant(roomParticipant);
            room.Status.Should().Be(RoomStatus.Live);

            room.RemoveParticipant(roomParticipant);

            room.Status.Should().Be(RoomStatus.Live);
        }
        public void should_not_update_room_status_to_closed_when_room_type_is_JudicialShared()
        {
            var room            = new ConsultationRoom(Guid.NewGuid(), "PanelMember1", VirtualCourtRoomType.JudicialShared, false);
            var roomParticipant = new RoomParticipant(Guid.NewGuid());

            room.AddParticipant(roomParticipant);
            room.Status.Should().Be(RoomStatus.Live);

            room.RemoveParticipant(roomParticipant);

            room.Status.Should().Be(RoomStatus.Live);
        }
        public void Should_update_room_status_to_closed_on_last_participant_remove()
        {
            var room            = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.JudgeJOH, false);
            var roomParticipant = new RoomParticipant(Guid.NewGuid());

            room.RoomParticipants.Add(roomParticipant);
            room.Status.Should().Be(RoomStatus.Live);

            room.RemoveParticipant(roomParticipant);

            room.Status.Should().Be(RoomStatus.Closed);
        }
        public void Should_remove_participant_from_room()
        {
            var participantId   = Guid.NewGuid();
            var roomParticipant = new RoomParticipant(participantId);
            var room            = new ConsultationRoom(Guid.NewGuid(), "Room1", VirtualCourtRoomType.JudgeJOH, false);

            room.AddParticipant(roomParticipant);
            var beforeCount = room.RoomParticipants.Count;

            room.RemoveParticipant(roomParticipant);

            room.RoomParticipants.Count.Should().Be(beforeCount - 1);
        }