Skip to content

Commit

Permalink
test: update unit tests to align with code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OswellHita committed Nov 14, 2024
1 parent c4bc49d commit d033f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public async Task ReceiveData_ShouldLogErrorOnFindingABadRowInEpisodesCsvFile()
LogLevel.Error,
0,
It.Is<object>(state => state.ToString().Contains("Error in ProcessEpisodeDataAsync: ")),
null,
It.IsAny<Exception>(),
(Func<object, Exception, string>)It.IsAny<object>()),
Times.Exactly(2));

Expand Down Expand Up @@ -115,7 +115,7 @@ public async Task ReceiveData_ShouldLogErrorOnFindingABadRowInSubjectsCsvFile()
LogLevel.Error,
0,
It.Is<object>(state => state.ToString().Contains("Error in ProcessParticipantDataAsync: ")),
null,
It.IsAny<Exception>(),
(Func<object, Exception, string>)It.IsAny<object>()),
Times.Exactly(2));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public async Task Run_ShouldReturnInternalServerError_WhenExceptionIsThrown()
0,
It.Is<It.IsAnyType>((state, type) => state.ToString().Contains("Failed to get organisation from the db") &&
state.ToString().Contains("Exception: Database error")),
null,
It.IsAny<Exception>(),
(Func<object, Exception, string>)It.IsAny<object>()),
Times.Once);
}
Expand Down

0 comments on commit d033f24

Please sign in to comment.