From 15be262292411a423e882f76c7c274fd7e3c7cb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 10:53:14 -0700 Subject: [PATCH] Bump NSubstitute.Analyzers.CSharp from 1.0.15 to 1.0.17 (#193) * Bump NSubstitute.Analyzers.CSharp from 1.0.15 to 1.0.17 Bumps [NSubstitute.Analyzers.CSharp](https://github.com/nsubstitute/NSubstitute.Analyzers) from 1.0.15 to 1.0.17. - [Changelog](https://github.com/nsubstitute/NSubstitute.Analyzers/blob/1.0.17/ReleaseNotes.md) - [Commits](https://github.com/nsubstitute/NSubstitute.Analyzers/compare/1.0.15...1.0.17) --- updated-dependencies: - dependency-name: NSubstitute.Analyzers.CSharp dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * cleanup test * try fix test * task again with order * from docs * typo * disable warning for now --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Montemagno --- Directory.Packages.props | 2 +- tests/Ordering.UnitTests/Application/OrdersWebApiTest.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index cbcbb720f..5a30d4a59 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -36,7 +36,7 @@ - + diff --git a/tests/Ordering.UnitTests/Application/OrdersWebApiTest.cs b/tests/Ordering.UnitTests/Application/OrdersWebApiTest.cs index 3a55accd4..acd69d4b9 100644 --- a/tests/Ordering.UnitTests/Application/OrdersWebApiTest.cs +++ b/tests/Ordering.UnitTests/Application/OrdersWebApiTest.cs @@ -124,8 +124,10 @@ public async Task Get_order_fails() { // Arrange var fakeOrderId = 123; +#pragma warning disable NS5003 _orderQueriesMock.GetOrderAsync(Arg.Any()) .Throws(new KeyNotFoundException()); +#pragma warning restore NS5003 // Act var orderServices = new OrderServices(_mediatorMock, _orderQueriesMock, _identityServiceMock, _loggerMock);