public void Execute(TestContext context, Guid participantId) { var request = new CallbackEventRequestBuilder() .WithConferenceId(context.Test.NewConferenceId) .WithParticipantId(participantId) .WithEventType(EventType.Joined) .Build(); var response = context.Apis.VideoWebApi.SendCallBackEvent(request); response.StatusCode.Should().Be(HttpStatusCode.NoContent); }
public void WhenTheHearingHasBeenClosed() { var request = new CallbackEventRequestBuilder() .WithConferenceId(_c.Test.NewConferenceId) .WithParticipantId(GetJudgeParticipantId()) .WithEventType(EventType.Close) .WithRoomType(RoomType.HearingRoom) .Build(); var response = SendEventToVideoWeb(request); response.StatusCode.Should().Be(HttpStatusCode.NoContent); }
public void Execute(TestContext context, Guid participantId) { var request = new CallbackEventRequestBuilder() .WithConferenceId(context.Test.NewConferenceId) .WithParticipantId(participantId) .WithEventType(EventType.Transfer) .FromRoomType(RoomType.WaitingRoom) .ToRoomType(RoomType.ConsultationRoom) .Build(); var response = context.Apis.VideoWebApi.SendCallBackEvent(request); response.StatusCode.Should().Be(HttpStatusCode.NoContent); }
public void WhenAParticipantHasChosenToBlockUserMedia() { var participantUser = GetUserFromConferenceDetails(Role.Individual.ToString()); var request = new CallbackEventRequestBuilder() .WithConferenceId(_c.Test.NewConferenceId) .WithParticipantId(participantUser.Id) .WithEventType(EventType.MediaPermissionDenied) .Build(); var response = SendEventToVideoApi(request); response.StatusCode.Should().Be(HttpStatusCode.NoContent); Tasks.GetTheTaskId(_c, EventType.MediaPermissionDenied); }
public void WhenAParticipantHasFailedTheSelfTestWithReason(string reason) { var participant = GetUserFromConferenceDetails(Role.Individual.ToString()); var request = new CallbackEventRequestBuilder() .WithConferenceId(_c.Test.NewConferenceId) .WithParticipantId(participant.Id) .WithEventType(EventType.SelfTestFailed) .WithReason(reason) .Build(); var response = SendEventToVideoApi(request); response.StatusCode.Should().Be(HttpStatusCode.NoContent); Tasks.GetTheTaskId(_c, EventType.SelfTestFailed); }
public void WhenAParticipantHasDisconnectedFromTheHearing(string participant, RoomType room) { var participantUser = GetUserFromConferenceDetails(participant); var request = new CallbackEventRequestBuilder() .WithConferenceId(_c.Test.NewConferenceId) .WithParticipantId(participantUser.Id) .WithEventType(EventType.Disconnected) .WithRoomType(room) .Build(); var response = SendEventToVideoWeb(request); response.StatusCode.Should().Be(HttpStatusCode.NoContent); Tasks.GetTheTaskId(_c, EventType.Disconnected); }