Skip to content

Commit

Permalink
chore: Mark only Assembly with [SetCulture(...)] (#556) [skip ci]
Browse files Browse the repository at this point in the history
* chore: Mark only Assembly with `[SetCulture(...)]`

chore: Removed unused usings

* fix: Removed whitespaces from value

Signed-off-by: Martin Stühmer <[email protected]>

---------

Signed-off-by: Martin Stühmer <[email protected]>
  • Loading branch information
samtrion authored Dec 16, 2024
1 parent 9f58c60 commit 997c5ae
Show file tree
Hide file tree
Showing 82 changed files with 3 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Confluent.Kafka;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Apache.Kafka;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class KafkaCheckTests : HealthCheckTestBase, IClassFixture<KafkaDatabase>
{
private readonly KafkaDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Apache.Kafka;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.Kafka;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.Azurite;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure.Blobs;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using global::Azure.Storage.Blobs;
using global::Azure.Storage.Sas;
using Microsoft.Extensions.Azure;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Azure.Blobs;

[SetCulture("en-US")]
public class BlobContainerAvailableHealthCheckTests
: HealthCheckTestBase,
IClassFixture<AzuriteAccess>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure.Blobs;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using global::Azure.Storage.Blobs;
using global::Azure.Storage.Sas;
using Microsoft.Extensions.Azure;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Azure.Blobs;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class BlobServiceAvailableHealthCheckTests
: HealthCheckTestBase,
IClassFixture<AzuriteAccess>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure.Queues;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using global::Azure.Storage.Queues;
using global::Azure.Storage.Sas;
using Microsoft.Extensions.Azure;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Azure.Queues;
using Xunit;

[SetCulture("en-US")]
public class QueueClientAvailableHealthCheckTests
: HealthCheckTestBase,
IClassFixture<AzuriteAccess>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure.Queues;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using global::Azure.Storage.Queues;
using global::Azure.Storage.Sas;
using Microsoft.Extensions.Azure;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Azure.Queues;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class QueueServiceAvailableHealthCheckTests
: HealthCheckTestBase,
IClassFixture<AzuriteAccess>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure.Tables;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading.Tasks;
using global::Azure.Data.Tables;
using global::Azure.Data.Tables.Sas;
using Microsoft.Extensions.Azure;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Azure.Tables;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class TableClientAvailableHealthCheckTests
: HealthCheckTestBase,
IClassFixture<AzuriteAccess>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Azure.Tables;

using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using global::Azure.Data.Tables;
using Microsoft.Extensions.Azure;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Azure.Tables;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class TableServiceAvailableHealthCheckTests
: HealthCheckTestBase,
IClassFixture<AzuriteAccess>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.ClickHouse;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class ClickHouseCheckTests : HealthCheckTestBase, IClassFixture<ClickHouseDatabase>
{
private readonly ClickHouseDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.ClickHouse;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.ClickHouse;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
namespace NetEvolve.HealthChecks.Tests.Integration.HealthChecks;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using NetEvolve.Extensions.XUnit;

[SetCulture("en-US")]
public class ApplicationHealthyCheckTests : HealthCheckTestBase
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
namespace NetEvolve.HealthChecks.Tests.Integration.HealthChecks;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using NetEvolve.Extensions.XUnit;

[SetCulture("en-US")]
public class ApplicationReadyCheckTests : HealthCheckTestBase
{
[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.MySql;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class MySqlCheckTests : HealthCheckTestBase, IClassFixture<MySqlDatabase>
{
private readonly MySqlDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.MySql;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.MySql;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.MySql.Connector;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class MySqlConnectorCheckTests : HealthCheckTestBase, IClassFixture<MySqlDatabase>
{
private readonly MySqlDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.MySqlConnector;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.MySql;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@

<ItemGroup>
<AssemblyAttribute Include="NetEvolve.Extensions.XUnit.IntegrationTestAttribute" />
<AssemblyAttribute Include="NetEvolve.Extensions.XUnit.SetCultureAttribute">
<_Parameter1>en_US</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Npgsql;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class NpgsqlCheckTests : HealthCheckTestBase, IClassFixture<NpgsqlDatabase>
{
private readonly NpgsqlDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Npgsql;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.PostgreSql;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Oracle;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class OracleCheckTests : HealthCheckTestBase, IClassFixture<OracleDatabase>
{
private readonly OracleDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Oracle;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.Oracle;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Redis;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.Redis;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Redis;
using NetEvolve.HealthChecks.Tests;
using StackExchange.Redis;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Confluent.Kafka;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.Redpanda;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class RedpandaCheckTests : HealthCheckTestBase, IClassFixture<RedpandaDatabase>
{
private readonly RedpandaDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.Redpanda;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.Redpanda;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.SQLite;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class SQLiteCheckTests : HealthCheckTestBase, IClassFixture<SQLiteDatabase>
{
private readonly SQLiteDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.SQLite;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.SqlServer;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class SqlServerCheckTests : HealthCheckTestBase, IClassFixture<SqlServerDatabase>
{
private readonly SqlServerDatabase _database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace NetEvolve.HealthChecks.Tests.Integration.SqlServer;

using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Testcontainers.MsSql;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using NetEvolve.Extensions.XUnit;
using NetEvolve.HealthChecks.SqlServer.Legacy;
using NetEvolve.HealthChecks.Tests;
using Xunit;

[SetCulture("en-US")]
public class SqlServerLegacyCheckTests : HealthCheckTestBase, IClassFixture<SqlServerLegacyDatabase>
{
private readonly SqlServerLegacyDatabase _database;
Expand Down
Loading

0 comments on commit 997c5ae

Please sign in to comment.