From cfe0d726630d21599de26f623966f14a99bc655e Mon Sep 17 00:00:00 2001 From: Gramli Date: Tue, 12 Mar 2024 22:08:23 +0100 Subject: [PATCH] fix codacy --- .../Database/Repositories/WeatherCommandsRepositoryTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/UnitTests/Weather.Infrastructure.UnitTests/Database/Repositories/WeatherCommandsRepositoryTests.cs b/src/Tests/UnitTests/Weather.Infrastructure.UnitTests/Database/Repositories/WeatherCommandsRepositoryTests.cs index adb9754..758ea5f 100644 --- a/src/Tests/UnitTests/Weather.Infrastructure.UnitTests/Database/Repositories/WeatherCommandsRepositoryTests.cs +++ b/src/Tests/UnitTests/Weather.Infrastructure.UnitTests/Database/Repositories/WeatherCommandsRepositoryTests.cs @@ -145,7 +145,7 @@ public async Task DeleteFavoriteLocationSafeAsync_Throw() .ThrowsAsync(new ArgumentException()); //Act - var _ = await Assert.ThrowsAsync(() => _uut.DeleteFavoriteLocationSafeAsync(deleteFavoriteCommand, CancellationToken.None)); + await Assert.ThrowsAsync(() => _uut.DeleteFavoriteLocationSafeAsync(deleteFavoriteCommand, CancellationToken.None)); //Assert _weatherDbContextMock.Verify(x => x.SaveChangesAsync(It.IsAny()), Times.Once);