diff --git a/SatelliteProvider.Tests/Authentication/AuthenticationServiceCollectionExtensionsTests.cs b/SatelliteProvider.Tests/Authentication/AuthenticationServiceCollectionExtensionsTests.cs index 893321b..5d2dcf2 100644 --- a/SatelliteProvider.Tests/Authentication/AuthenticationServiceCollectionExtensionsTests.cs +++ b/SatelliteProvider.Tests/Authentication/AuthenticationServiceCollectionExtensionsTests.cs @@ -8,6 +8,7 @@ using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using SatelliteProvider.Api.Authentication; using SatelliteProvider.Tests.TestUtilities; +using AuthExtensions = SatelliteProvider.Api.Authentication.AuthenticationServiceCollectionExtensions; namespace SatelliteProvider.Tests.Authentication; @@ -18,13 +19,13 @@ public class AuthenticationServiceCollectionExtensionsTests : IDisposable public AuthenticationServiceCollectionExtensionsTests() { - _originalEnv = Environment.GetEnvironmentVariable(AuthenticationServiceCollectionExtensions.JwtSecretEnvVar); - Environment.SetEnvironmentVariable(AuthenticationServiceCollectionExtensions.JwtSecretEnvVar, null); + _originalEnv = Environment.GetEnvironmentVariable(AuthExtensions.JwtSecretEnvVar); + Environment.SetEnvironmentVariable(AuthExtensions.JwtSecretEnvVar, null); } public void Dispose() { - Environment.SetEnvironmentVariable(AuthenticationServiceCollectionExtensions.JwtSecretEnvVar, _originalEnv); + Environment.SetEnvironmentVariable(AuthExtensions.JwtSecretEnvVar, _originalEnv); GC.SuppressFinalize(this); } @@ -122,7 +123,7 @@ public class AuthenticationServiceCollectionExtensionsTests : IDisposable { // Arrange const string envSecret = "env-secret-also-longer-than-thirty-two-bytes-for-hmac"; - Environment.SetEnvironmentVariable(AuthenticationServiceCollectionExtensions.JwtSecretEnvVar, envSecret); + Environment.SetEnvironmentVariable(AuthExtensions.JwtSecretEnvVar, envSecret); var services = new ServiceCollection(); services.AddLogging(); var configuration = BuildConfiguration(("Jwt:Secret", "config-secret-also-32-bytes-long-aaaaaaaaaa"));