Skip to content

Commit

Permalink
Use static global using for DictionaryHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sukreshmanda committed Jul 30, 2024
1 parent 7ecc4fc commit 030c162
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.CircuitBreaker;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensions.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensions.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.CircuitBreaker;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/CircuitBreaker/CircuitBreakerAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.CircuitBreaker;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensionsAsync.ResultAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensionsAsync.ResultAndOrCancellationScenario;

namespace Polly.Specs.CircuitBreaker;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensions.ResultAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensions.ResultAndOrCancellationScenario;

namespace Polly.Specs.CircuitBreaker;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Fallback/FallbackAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.Fallback;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Fallback/FallbackSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensions.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensions.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.Fallback;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Fallback/FallbackTResultAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensionsAsync.ResultAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensionsAsync.ResultAndOrCancellationScenario;

namespace Polly.Specs.Fallback;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Fallback/FallbackTResultSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensions.ResultAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensions.ResultAndOrCancellationScenario;

namespace Polly.Specs.Fallback;

Expand Down
2 changes: 1 addition & 1 deletion test/Polly.Specs/Polly.Specs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<Using Include="FluentAssertions.Execution" />
<Using Include="FluentAssertions.Extensions" />
<Using Include="NSubstitute" />
<Using Include="Polly.Specs.DictionaryHelpers" Static="true" />
<Using Include="Polly.Specs.Helpers" />
<Using Include="Polly.Specs.Helpers.Bulkhead" />
<Using Include="Polly.Specs.Helpers.Caching" />
Expand All @@ -27,7 +28,6 @@
<Using Include="Xunit" />
<Using Include="Xunit.Abstractions" />
<Using Include="Xunit.Sdk" />
<Using Include="Polly.Specs.DictionaryHelpers" Static="true" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Retry/RetryAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.Retry;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Retry/RetryForeverAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.Retry;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Retry/RetryTResultAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensionsAsync.ResultAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensionsAsync.ResultAndOrCancellationScenario;

namespace Polly.Specs.Retry;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Retry/RetryTResultSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensions.ResultAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyTResultExtensions.ResultAndOrCancellationScenario;

namespace Polly.Specs.Retry;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Retry/WaitAndRetryAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.Retry;

Expand Down
3 changes: 1 addition & 2 deletions test/Polly.Specs/Retry/WaitAndRetryForeverAsyncSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using static Polly.Specs.DictionaryHelpers;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;
using Scenario = Polly.Specs.Helpers.PolicyExtensionsAsync.ExceptionAndOrCancellationScenario;

namespace Polly.Specs.Retry;

Expand Down

0 comments on commit 030c162

Please sign in to comment.