From d033f24cf0bbe22cb76066b4f37bd13c93950a5e Mon Sep 17 00:00:00 2001 From: OswellHita Date: Thu, 14 Nov 2024 16:03:57 +0000 Subject: [PATCH] test: update unit tests to align with code changes --- .../ReceiveDataTests/ReceiveDataTests.cs | 4 ++-- .../GetReferenceDataTests/GetReferenceDataTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/EpisodeIntegrationServiceTests/ReceiveDataTests/ReceiveDataTests.cs b/tests/EpisodeIntegrationServiceTests/ReceiveDataTests/ReceiveDataTests.cs index 973d4d48..db859c10 100644 --- a/tests/EpisodeIntegrationServiceTests/ReceiveDataTests/ReceiveDataTests.cs +++ b/tests/EpisodeIntegrationServiceTests/ReceiveDataTests/ReceiveDataTests.cs @@ -84,7 +84,7 @@ public async Task ReceiveData_ShouldLogErrorOnFindingABadRowInEpisodesCsvFile() LogLevel.Error, 0, It.Is(state => state.ToString().Contains("Error in ProcessEpisodeDataAsync: ")), - null, + It.IsAny(), (Func)It.IsAny()), Times.Exactly(2)); @@ -115,7 +115,7 @@ public async Task ReceiveData_ShouldLogErrorOnFindingABadRowInSubjectsCsvFile() LogLevel.Error, 0, It.Is(state => state.ToString().Contains("Error in ProcessParticipantDataAsync: ")), - null, + It.IsAny(), (Func)It.IsAny()), Times.Exactly(2)); diff --git a/tests/ReferenceDataServiceTests/GetReferenceDataTests/GetReferenceDataTests.cs b/tests/ReferenceDataServiceTests/GetReferenceDataTests/GetReferenceDataTests.cs index a97f94ef..25911fb8 100644 --- a/tests/ReferenceDataServiceTests/GetReferenceDataTests/GetReferenceDataTests.cs +++ b/tests/ReferenceDataServiceTests/GetReferenceDataTests/GetReferenceDataTests.cs @@ -138,7 +138,7 @@ public async Task Run_ShouldReturnInternalServerError_WhenExceptionIsThrown() 0, It.Is((state, type) => state.ToString().Contains("Failed to get organisation from the db") && state.ToString().Contains("Exception: Database error")), - null, + It.IsAny(), (Func)It.IsAny()), Times.Once); }