diff --git a/Nhl.Api.Tests/AssemblyInfo.cs b/Nhl.Api.Tests/AssemblyInfo.cs index c72cfb0e..a4a385fa 100644 --- a/Nhl.Api.Tests/AssemblyInfo.cs +++ b/Nhl.Api.Tests/AssemblyInfo.cs @@ -1,6 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; - -[assembly: Parallelize(Workers = 4, Scope = ExecutionScope.MethodLevel)] +[assembly: Parallelize(Workers = 4, Scope = ExecutionScope.MethodLevel)] namespace Nhl.Api.Tests; internal class AssemblyInfo diff --git a/Nhl.Api.Tests/CachingServiceTests.cs b/Nhl.Api.Tests/CachingServiceTests.cs index 62ea408e..e3f69927 100644 --- a/Nhl.Api.Tests/CachingServiceTests.cs +++ b/Nhl.Api.Tests/CachingServiceTests.cs @@ -1,7 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Common.Services; -using Nhl.Api.Tests.Helpers.Attributes; -using System.Threading.Tasks; +using Nhl.Api.Common.Services; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/CountryCodeHelperTests.cs b/Nhl.Api.Tests/CountryCodeHelperTests.cs index c271a9d2..8736d563 100644 --- a/Nhl.Api.Tests/CountryCodeHelperTests.cs +++ b/Nhl.Api.Tests/CountryCodeHelperTests.cs @@ -1,6 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Common.Helpers; -using Nhl.Api.Tests.Helpers.Attributes; +using Nhl.Api.Common.Helpers; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/DateTimeHelperTests.cs b/Nhl.Api.Tests/DateTimeHelperTests.cs index d1448d16..705c7c64 100644 --- a/Nhl.Api.Tests/DateTimeHelperTests.cs +++ b/Nhl.Api.Tests/DateTimeHelperTests.cs @@ -1,7 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Common.Helpers; -using Nhl.Api.Tests.Helpers.Attributes; -using System; +using Nhl.Api.Common.Helpers; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/GameTests.cs b/Nhl.Api.Tests/GameTests.cs index 69112b44..65ed6661 100644 --- a/Nhl.Api.Tests/GameTests.cs +++ b/Nhl.Api.Tests/GameTests.cs @@ -1,8 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Tests.Helpers.Attributes; -using System; using System.Linq; -using System.Threading.Tasks; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/GlobalUsings.cs b/Nhl.Api.Tests/GlobalUsings.cs new file mode 100644 index 00000000..31d79df8 --- /dev/null +++ b/Nhl.Api.Tests/GlobalUsings.cs @@ -0,0 +1,5 @@ +global using System; +global using System.Collections.Generic; +global using System.Threading.Tasks; +global using Microsoft.VisualStudio.TestTools.UnitTesting; +global using Nhl.Api.Tests.Helpers.Attributes; diff --git a/Nhl.Api.Tests/Helpers/Attributes/TestMethodWithRetryAttribute.cs b/Nhl.Api.Tests/Helpers/Attributes/TestMethodWithRetryAttribute.cs index 0676cca3..54e4d8cd 100644 --- a/Nhl.Api.Tests/Helpers/Attributes/TestMethodWithRetryAttribute.cs +++ b/Nhl.Api.Tests/Helpers/Attributes/TestMethodWithRetryAttribute.cs @@ -1,6 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Linq; +using System.Linq; using System.Threading; namespace Nhl.Api.Tests.Helpers.Attributes; diff --git a/Nhl.Api.Tests/LeagueTests.cs b/Nhl.Api.Tests/LeagueTests.cs index 27687a01..94338b93 100644 --- a/Nhl.Api.Tests/LeagueTests.cs +++ b/Nhl.Api.Tests/LeagueTests.cs @@ -1,14 +1,9 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; using Nhl.Api.Enumerations.Game; using Nhl.Api.Models.Enumerations.Player; using Nhl.Api.Models.Enumerations.Team; using Nhl.Api.Models.Season; using Nhl.Api.Models.Team; -using Nhl.Api.Tests.Helpers.Attributes; -using System; -using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/LinqExtensionTests.cs b/Nhl.Api.Tests/LinqExtensionTests.cs index 82712441..8ace1a45 100644 --- a/Nhl.Api.Tests/LinqExtensionTests.cs +++ b/Nhl.Api.Tests/LinqExtensionTests.cs @@ -1,7 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Tests.Helpers.Attributes; -using System.Collections.Generic; -using System.Linq; +using System.Linq; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/NhlApiAsyncHelperTests.cs b/Nhl.Api.Tests/NhlApiAsyncHelperTests.cs index ad63016c..fb589c4a 100644 --- a/Nhl.Api.Tests/NhlApiAsyncHelperTests.cs +++ b/Nhl.Api.Tests/NhlApiAsyncHelperTests.cs @@ -1,9 +1,6 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Common.Services; -using Nhl.Api.Tests.Helpers.Attributes; +using Nhl.Api.Common.Services; using System.Collections.Concurrent; using System.Linq; -using System.Threading.Tasks; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/PlayerTests.cs b/Nhl.Api.Tests/PlayerTests.cs index acf059e3..ccedafbf 100644 --- a/Nhl.Api.Tests/PlayerTests.cs +++ b/Nhl.Api.Tests/PlayerTests.cs @@ -1,11 +1,8 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Enumerations.Game; +using Nhl.Api.Enumerations.Game; using Nhl.Api.Models.Enumerations.Player; using Nhl.Api.Models.Season; -using Nhl.Api.Tests.Helpers.Attributes; using System.Linq; using System.Net.Http; -using System.Threading.Tasks; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/ResourceDisposeTests.cs b/Nhl.Api.Tests/ResourceDisposeTests.cs index 20be8bce..d213ec13 100644 --- a/Nhl.Api.Tests/ResourceDisposeTests.cs +++ b/Nhl.Api.Tests/ResourceDisposeTests.cs @@ -1,8 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Nhl.Api.Tests.Helpers.Attributes; -using System.Threading.Tasks; - -namespace Nhl.Api.Tests; +namespace Nhl.Api.Tests; [TestClass] public class ResourceDisposeTests diff --git a/Nhl.Api.Tests/StatisticsTests.cs b/Nhl.Api.Tests/StatisticsTests.cs index a06d7305..4070f084 100644 --- a/Nhl.Api.Tests/StatisticsTests.cs +++ b/Nhl.Api.Tests/StatisticsTests.cs @@ -1,10 +1,7 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; using Nhl.Api.Enumerations.Game; using Nhl.Api.Enumerations.Statistic; using Nhl.Api.Models.Season; -using Nhl.Api.Tests.Helpers.Attributes; using System.Linq; -using System.Threading.Tasks; namespace Nhl.Api.Tests; diff --git a/Nhl.Api.Tests/TeamTests.cs b/Nhl.Api.Tests/TeamTests.cs index a0ff7721..e56468c7 100644 --- a/Nhl.Api.Tests/TeamTests.cs +++ b/Nhl.Api.Tests/TeamTests.cs @@ -1,11 +1,7 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; using Nhl.Api.Models.Enumerations.Team; using Nhl.Api.Models.Season; using Nhl.Api.Models.Team; -using Nhl.Api.Tests.Helpers.Attributes; -using System; using System.Linq; -using System.Threading.Tasks; namespace Nhl.Api.Tests;