Example #1
0
        protected async Task ValidateCallRecordingStateAsync(ServerCall serverCall,
                                                             string recordingId,
                                                             CallRecordingState expectedCallRecordingState)
        {
            Assert.NotNull(serverCall);
            Assert.NotNull(recordingId);

            // There is a delay between the action and when the state is available.
            // Waiting to make sure we get the updated state, when we are running
            // against a live service.
            SleepInTest(6000);

            CallRecordingProperties callRecordingProperties = await serverCall.GetRecordingStateAsync(recordingId).ConfigureAwait(false);

            Assert.NotNull(callRecordingProperties);
            Assert.AreEqual(callRecordingProperties.RecordingState, expectedCallRecordingState);
        }
 internal CallRecordingProperties(CallRecordingState recordingState)
 {
     RecordingState = recordingState;
 }
Example #3
0
 public static CallRecordingStateChangeEvent CallRecordingStateChangeEvent(string recordingId = default, CallRecordingState state = default, DateTimeOffset startDateTime = default, string serverCallId = default)
 {
     return(new CallRecordingStateChangeEvent(recordingId, state, startDateTime, serverCallId));
 }
Example #4
0
 public static CallRecordingProperties CallRecordingProperties(CallRecordingState recordingState = default)
 {
     return(new CallRecordingProperties(recordingState));
 }