public async Task Should_return_no_content_when_request_is_sent()
        {
            // Arrange
            var request = ConsultationHelper.GetConsultationRequest(_testConference);
            // Act
            var result =
                await _controller.RespondToConsultationRequestAsync(request);

            // Assert
            result.Should().BeOfType <NoContentResult>();
            _mocker.Mock <IConsultationNotifier>()
            .Verify(
                x => x.NotifyConsultationResponseAsync(_testConference, request.RoomLabel,
                                                       request.RequestedForId, request.Answer), Times.Once);
        }
        public async Task Should_return_no_content_when_request_is_sent()
        {
            _videoApiClientMock
            .Setup(x => x.HandleConsultationRequestAsync(It.IsAny <ConsultationRequest>()))
            .Returns(Task.FromResult(default(object)));

            var result =
                await _controller.HandleConsultationRequestAsync(
                    ConsultationHelper.GetConsultationRequest(_testConference));

            var typedResult = (NoContentResult)result;

            typedResult.Should().NotBeNull();
            _eventHubClientMock.Verify(
                x => x.AdminConsultationMessage
                    (It.IsAny <Guid>(), It.IsAny <RoomType>(), It.IsAny <string>(), It.IsAny <ConsultationAnswer>()),
                Times.Never);
        }
 public async Task Should_return_bad_request()
 {
     // Arrange
     var request      = ConsultationHelper.GetConsultationRequest(_testConference);
     var apiException = new VideoApiException <ProblemDetails>("Bad Request", (int)HttpStatusCode.BadRequest,
                                                               "{\"ConsultationRoom\":[\"No consultation room available\"]}", null, default, null);