public void Should_publish_message_to_queue_when_ParticipantRemovedIntegrationEvent_is_raised()
        {
            var participantRemovedIntegrationEvent = new ParticipantRemovedIntegrationEvent(Guid.NewGuid(), Guid.NewGuid());

            _eventPublisher.PublishAsync(participantRemovedIntegrationEvent);

            _serviceBusQueueClient.Count.Should().Be(1);
            var @event = _serviceBusQueueClient.ReadMessageFromQueue();

            @event.IntegrationEvent.Should().BeOfType <ParticipantRemovedIntegrationEvent>();
        }
        public async Task should_call_video_api_when_handle_is_called_with_explicit_interface()
        {
            var messageHandler = (IMessageHandler) new ParticipantRemovedHandler(VideoApiServiceMock.Object);

            var integrationEvent = new ParticipantRemovedIntegrationEvent {
                HearingId = HearingId, ParticipantId = ParticipantId
            };
            await messageHandler.HandleAsync(integrationEvent);

            VideoApiServiceMock.Verify(x => x.RemoveParticipantFromConference(It.IsAny <Guid>(), It.IsAny <Guid>()), Times.Once);
        }