public async Task should_return_not_found_if_endpoint_is_not_found() { var request = new PrivateVideoEndpointConsultationRequest { ConferenceId = _testConference.Id, EndpointId = Guid.NewGuid() }; var result = await _controller.CallVideoEndpointAsync(request); var actionResult = result.As <NotFoundObjectResult>(); actionResult.Should().NotBeNull(); }
public async Task should_return_not_found_if_defence_advocate_is_not_found() { var cp = new ClaimsPrincipalBuilder().WithRole(AppRoles.RepresentativeRole) .WithUsername("*****@*****.**").Build(); _controller = SetupControllerWithClaims(cp); var request = new PrivateVideoEndpointConsultationRequest { ConferenceId = _testConference.Id, EndpointId = _testConference.Endpoints.First(x => !string.IsNullOrWhiteSpace(x.DefenceAdvocateUsername)) .Id }; var result = await _controller.CallVideoEndpointAsync(request); var actionResult = result.As <NotFoundObjectResult>(); actionResult.Should().NotBeNull(); }