From e8c75d1864f02026a7f77d6424ca8bdd9219c141 Mon Sep 17 00:00:00 2001 From: marcogagliardi Date: Fri, 10 Nov 2023 08:49:48 +0000 Subject: [PATCH] test fix --- .../Controllers/AudioPlatformControllerTests.cs | 3 ++- .../AdminWebsite/Controllers/AudioPlatformController.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AdminWebsite/AdminWebsite.UnitTests/Controllers/AudioPlatformControllerTests.cs b/AdminWebsite/AdminWebsite.UnitTests/Controllers/AudioPlatformControllerTests.cs index 9ba0a6952..6951601d2 100644 --- a/AdminWebsite/AdminWebsite.UnitTests/Controllers/AudioPlatformControllerTests.cs +++ b/AdminWebsite/AdminWebsite.UnitTests/Controllers/AudioPlatformControllerTests.cs @@ -46,7 +46,8 @@ public async Task Should_return_ok() }; _videoApiClientMock.Setup(x => x.GetAudioRecordingLinkAsync(It.IsAny())).ReturnsAsync(audioResponse); - + _featureTogglesMock.Setup(x => x.HrsEnabled()).Returns(false); + var result = await _controller.GetAudioRecordingLinkAsync(It.IsAny()); var actionResult = result as OkObjectResult; diff --git a/AdminWebsite/AdminWebsite/Controllers/AudioPlatformController.cs b/AdminWebsite/AdminWebsite/Controllers/AudioPlatformController.cs index 41c55f87a..923e417b2 100644 --- a/AdminWebsite/AdminWebsite/Controllers/AudioPlatformController.cs +++ b/AdminWebsite/AdminWebsite/Controllers/AudioPlatformController.cs @@ -143,7 +143,7 @@ private static List GetCvpForAudioFileResponses(IEnumer return response; } - private string GetAudioHrsFileName(string serviceId, string caseNumber, string hearingId) + private static string GetAudioHrsFileName(string serviceId, string caseNumber, string hearingId) { const string regex = "[^a-zA-Z0-9]"; const RegexOptions regexOptions = RegexOptions.None;