diff --git a/src/administration/Administration.Service/BusinessLogic/SubscriptionConfigurationBusinessLogic.cs b/src/administration/Administration.Service/BusinessLogic/SubscriptionConfigurationBusinessLogic.cs index 37384ea3bf..6cb91b3926 100644 --- a/src/administration/Administration.Service/BusinessLogic/SubscriptionConfigurationBusinessLogic.cs +++ b/src/administration/Administration.Service/BusinessLogic/SubscriptionConfigurationBusinessLogic.cs @@ -17,11 +17,12 @@ * SPDX-License-Identifier: Apache-2.0 ********************************************************************************/ -using Org.Eclipse.TractusX.Portal.Backend.Administration.Service.ErrorHandling; using Microsoft.Extensions.Options; +using Org.Eclipse.TractusX.Portal.Backend.Administration.Service.ErrorHandling; using Org.Eclipse.TractusX.Portal.Backend.Framework.ErrorHandling; using Org.Eclipse.TractusX.Portal.Backend.Framework.IO; using Org.Eclipse.TractusX.Portal.Backend.Framework.Models.Encryption; +using Org.Eclipse.TractusX.Portal.Backend.OfferProvider.Library.DependencyInjection; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Repositories; @@ -29,7 +30,6 @@ using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Identities; using Org.Eclipse.TractusX.Portal.Backend.Processes.OfferSubscription.Library; using Org.Eclipse.TractusX.Portal.Backend.Processes.OfferSubscription.Library.Extensions; -using Org.Eclipse.TractusX.Portal.Backend.OfferProvider.Library.DependencyInjection; namespace Org.Eclipse.TractusX.Portal.Backend.Administration.Service.BusinessLogic; diff --git a/src/portalbackend/PortalBackend.Migrations/Migrations/20250109103352_auth_auto_setup.cs b/src/portalbackend/PortalBackend.Migrations/Migrations/20250109103352_auth_auto_setup.cs index 442fa7ba67..2a2d7d5a26 100644 --- a/src/portalbackend/PortalBackend.Migrations/Migrations/20250109103352_auth_auto_setup.cs +++ b/src/portalbackend/PortalBackend.Migrations/Migrations/20250109103352_auth_auto_setup.cs @@ -1,4 +1,3 @@ -using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/tests/administration/Administration.Service.Tests/BusinessLogic/SubscriptionConfigurationBusinessLogicTests.cs b/tests/administration/Administration.Service.Tests/BusinessLogic/SubscriptionConfigurationBusinessLogicTests.cs index 106b367bc9..c2d5602193 100644 --- a/tests/administration/Administration.Service.Tests/BusinessLogic/SubscriptionConfigurationBusinessLogicTests.cs +++ b/tests/administration/Administration.Service.Tests/BusinessLogic/SubscriptionConfigurationBusinessLogicTests.cs @@ -53,7 +53,6 @@ public class SubscriptionConfigurationBusinessLogicTests private readonly IIdentityService _identityService; private readonly OfferProviderSettings _options; - public SubscriptionConfigurationBusinessLogicTests() { _fixture = new Fixture().Customize(new AutoFakeItEasyCustomization { ConfigureMembers = true }); @@ -80,8 +79,8 @@ public SubscriptionConfigurationBusinessLogicTests() { EncryptionConfigs = [ - new() { Index=0, EncryptionKey=Convert.ToHexString(_fixture.CreateMany(32).ToArray()), CipherMode=CipherMode.CFB, PaddingMode=PaddingMode.PKCS7 }, - new() { Index=1, EncryptionKey=Convert.ToHexString(_fixture.CreateMany(32).ToArray()), CipherMode=CipherMode.CBC, PaddingMode=PaddingMode.PKCS7 }, + new() { Index = 0, EncryptionKey = Convert.ToHexString(_fixture.CreateMany(32).ToArray()), CipherMode = CipherMode.CFB, PaddingMode = PaddingMode.PKCS7 }, + new() { Index = 1, EncryptionKey = Convert.ToHexString(_fixture.CreateMany(32).ToArray()), CipherMode = CipherMode.CBC, PaddingMode = PaddingMode.PKCS7 }, ], EncryptionConfigIndex = 1 }; diff --git a/tests/externalsystems/OfferProvider.Library/BusinessLogic/OfferProviderBusinessLogicTests.cs b/tests/externalsystems/OfferProvider.Library/BusinessLogic/OfferProviderBusinessLogicTests.cs index 0ea4604b62..9e6b1a29e6 100644 --- a/tests/externalsystems/OfferProvider.Library/BusinessLogic/OfferProviderBusinessLogicTests.cs +++ b/tests/externalsystems/OfferProvider.Library/BusinessLogic/OfferProviderBusinessLogicTests.cs @@ -67,8 +67,8 @@ public OfferProviderBusinessLogicTests() { EncryptionConfigs = [ - new() { Index=0, EncryptionKey="2b7e151628aed2a6abf715892b7e151628aed2a6abf715892b7e151628aed2a6", CipherMode=CipherMode.CFB, PaddingMode=PaddingMode.PKCS7 }, - new() { Index=1, EncryptionKey="5892b7e151628aed2a6abf715892b7e151628aed2a62b7e151628aed2a6abf71", CipherMode=CipherMode.CBC, PaddingMode=PaddingMode.PKCS7 }, + new() { Index = 0, EncryptionKey = "2b7e151628aed2a6abf715892b7e151628aed2a6abf715892b7e151628aed2a6", CipherMode = CipherMode.CFB, PaddingMode = PaddingMode.PKCS7 }, + new() { Index = 1, EncryptionKey = "5892b7e151628aed2a6abf715892b7e151628aed2a62b7e151628aed2a6abf71", CipherMode = CipherMode.CBC, PaddingMode = PaddingMode.PKCS7 }, ], EncryptionConfigIndex = 1 };