public void Setup() { _queryHandler = new Mock <IQueryHandler>(); _audioPlatformService = new Mock <IAudioPlatformService>(); _storageServiceFactory = new Mock <IAzureStorageServiceFactory>(); _storageService = new Mock <IAzureStorageService>(); _controller = new AudioRecordingController ( _storageServiceFactory.Object, _audioPlatformService.Object, new Mock <ILogger <AudioRecordingController> >().Object, _queryHandler.Object ); _testConference = new ConferenceBuilder() .WithParticipant(UserRole.Judge, null) .WithParticipant(UserRole.Individual, "Claimant", null, null, RoomType.ConsultationRoom1) .WithParticipant(UserRole.Representative, "Claimant") .WithParticipant(UserRole.Individual, "Defendant") .WithParticipant(UserRole.Representative, "Defendant") .Build(); _queryHandler .Setup(x => x.Handle <GetConferenceByHearingRefIdQuery, VideoApi.Domain.Conference>( It.IsAny <GetConferenceByHearingRefIdQuery>())) .ReturnsAsync(_testConference); }
public void Setup() { _videoApiClientMock = new Mock <IVideoApiClient>(); _mockLogger = new Mock <ILogger <VenuesController> >(); _controller = new AudioRecordingController(_videoApiClientMock.Object, _mockLogger.Object); }