コード例 #1
0
        public void Close_conferences_and_remove_virtual_court_rooms()
        {
            var response = new ExpiredConferencesResponse
            {
                Id = new Guid("a02dea09-4442-424d-bcaa-033d703e5cb7"),
            };

            var conferences = new List <ExpiredConferencesResponse> {
                response
            };

            _videoApiClient.Setup(x => x.GetExpiredOpenConferencesAsync()).ReturnsAsync(conferences);

            _closeConferenceService.CloseConferencesAsync();
            _videoApiClient.Verify(x => x.CloseConferenceAsync(It.IsAny <Guid>()), Times.AtLeastOnce);
        }
コード例 #2
0
        public void Should_delete_audio_applications_for_closed_conferences_with_audio_recording()
        {
            var response = new ExpiredConferencesResponse
            {
                HearingId = new Guid("a02dea09-4442-424d-bcaa-033d703e5cb7"),
            };

            var conferences = new List <ExpiredConferencesResponse> {
                response
            };

            _videoApiClient.Setup(x => x.GetExpiredAudiorecordingConferencesAsync()).ReturnsAsync(conferences);

            var result = _closeConferenceService.DeleteAudiorecordingApplicationsAsync();

            _videoApiClient.Verify(x => x.DeleteAudioApplicationAsync(It.IsAny <Guid>()), Times.AtLeastOnce);
            Assert.AreEqual(1, result.Result);
        }