public async Task PauseRecordingAsync_Return200Ok(string sampleRecordingId) { ServerCall serverCall = CreateMockServerCall(200); Response response = await serverCall.PauseRecordingAsync(sampleRecordingId); Assert.AreEqual((int)HttpStatusCode.OK, response.Status); }
public void PauseRecordingAsync_Returns404NotFound(string sampleRecordingId) { ServerCall serverCall = CreateMockServerCall(404); RequestFailedException?ex = Assert.ThrowsAsync <RequestFailedException>(async() => await serverCall.PauseRecordingAsync(sampleRecordingId).ConfigureAwait(false)); Assert.NotNull(ex); Assert.AreEqual(ex?.Status, 404); }