From 4e672b4264715b78f57d8275b6ef2a4b542a6e2a Mon Sep 17 00:00:00 2001 From: Loretta Date: Sat, 13 Dec 2025 12:32:14 +0100 Subject: [PATCH] Remove SignalR test client and disable Null plugin managers - Deleted Mango.Sandbox.SignalRTestClient project and all related files from the solution. - Switched appsettings.json connection string to use FruitBank_DEV. - Cleaned up project references in Mango.Sandbox.EndPoints and its test project. - Commented out all Null* plugin manager/service classes in Mango.Sandbox.EndPoints.Services. --- FruitBank.sln | 15 ------ .../Nop.Web/App_Data/appsettings.json | 2 +- .../Mango.Sandbox.EndPoints.Tests.csproj | 48 +------------------ .../Mango.Sandbox.EndPoints.csproj | 4 -- .../NullAuthenticationPluginManager.cs | 38 +++++++-------- .../Services/NullDiscountPluginManager.cs | 28 +++++------ .../Services/NullExchangeRatePluginManager.cs | 36 +++++++------- .../NullExternalAuthenticationService.cs | 40 ++++++++-------- ...lMultiFactorAuthenticationPluginManager.cs | 42 ++++++++-------- .../Services/NullPaymentPluginManager.cs | 46 +++++++++--------- .../Services/NullPickupPluginManager.cs | 38 +++++++-------- .../Services/NullSearchPluginManager.cs | 38 +++++++-------- .../Services/NullShippingPluginManager.cs | 46 +++++++++--------- .../Services/NullTaxPluginManager.cs | 38 +++++++-------- .../Services/NullWidgetPluginManager.cs | 38 +++++++-------- .../Mango.Sandbox.SignalRTestClient.csproj | 11 ----- .../Program.cs | 48 ------------------- 17 files changed, 217 insertions(+), 339 deletions(-) delete mode 100644 Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Mango.Sandbox.SignalRTestClient.csproj delete mode 100644 Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Program.cs diff --git a/FruitBank.sln b/FruitBank.sln index 4220d61..7c62890 100644 --- a/FruitBank.sln +++ b/FruitBank.sln @@ -91,8 +91,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.EndPoints", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.EndPoints.Tests", "Tests\Mango.Sandbox\Mango.Sandbox.EndPoints.Tests\Mango.Sandbox.EndPoints.Tests.csproj", "{B8491E5C-DBB5-1594-052E-744D78D7A4DE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Sandbox.SignalRTestClient", "Tests\Mango.Sandbox\Mango.Sandbox.SignalRTestClient\Mango.Sandbox.SignalRTestClient.csproj", "{B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -537,18 +535,6 @@ Global {B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|Mixed Platforms.Build.0 = Release|Any CPU {B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|x86.ActiveCfg = Release|Any CPU {B8491E5C-DBB5-1594-052E-744D78D7A4DE}.Release|x86.Build.0 = Release|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|x86.ActiveCfg = Debug|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Debug|x86.Build.0 = Debug|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Any CPU.Build.0 = Release|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|x86.ActiveCfg = Release|Any CPU - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -594,7 +580,6 @@ Global {EE44B558-F1DA-433A-BD4C-D275986A4679} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} {D22DB269-2490-4A3D-B0B4-2CD2BB626F9C} = {E8FC6874-E230-468A-9685-4747354B92FF} {B8491E5C-DBB5-1594-052E-744D78D7A4DE} = {E8FC6874-E230-468A-9685-4747354B92FF} - {B2FBDB33-24F4-E0B1-0EA7-7939A387F88F} = {E8FC6874-E230-468A-9685-4747354B92FF} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {EE72A8B2-332A-4175-9319-6726D36E9D25} diff --git a/Presentation/Nop.Web/App_Data/appsettings.json b/Presentation/Nop.Web/App_Data/appsettings.json index 3081cc3..3fe7c34 100644 --- a/Presentation/Nop.Web/App_Data/appsettings.json +++ b/Presentation/Nop.Web/App_Data/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "ConnectionString": "Data Source=195.26.231.218;Initial Catalog=FruitBank_PROD;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=v6f_?xNfg9N1;Trust Server Certificate=True", + "ConnectionString": "Data Source=195.26.231.218;Initial Catalog=FruitBank_DEV;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=v6f_?xNfg9N1;Trust Server Certificate=True", "DataProvider": "sqlserver", "SQLCommandTimeout": null, "WithNoLock": false diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints.Tests/Mango.Sandbox.EndPoints.Tests.csproj b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints.Tests/Mango.Sandbox.EndPoints.Tests.csproj index ce96e04..bfbf974 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints.Tests/Mango.Sandbox.EndPoints.Tests.csproj +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints.Tests/Mango.Sandbox.EndPoints.Tests.csproj @@ -19,62 +19,18 @@ + - + ..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\AyCode.Core.dll - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Core.Server.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Core.Tests.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Database.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Database.Tests.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Entities.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Entities.Server.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Interfaces.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Interfaces.Server.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Models.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Models.Server.dll - ..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\AyCode.Services.dll - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Services.Server.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Services.Server.Tests.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Services.Tests.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Utils.dll - - - ..\..\..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server.Tests\bin\FruitBank\Debug\net9.0\AyCode.Utils.Server.dll - ..\..\..\..\FruitBankHybridApp\FruitBank.Common.Server\bin\Debug\net9.0\FruitBank.Common.dll diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Mango.Sandbox.EndPoints.csproj b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Mango.Sandbox.EndPoints.csproj index a8a0166..57aa986 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Mango.Sandbox.EndPoints.csproj +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Mango.Sandbox.EndPoints.csproj @@ -84,10 +84,6 @@ - - - - diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullAuthenticationPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullAuthenticationPluginManager.cs index d65a42e..c449f9c 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullAuthenticationPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullAuthenticationPluginManager.cs @@ -1,30 +1,30 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Authentication.External; -using Nop.Services.Plugins; +//using Nop.Services.Authentication.External; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; -public class NullAuthenticationPluginManager : IAuthenticationPluginManager -{ - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullAuthenticationPluginManager : IAuthenticationPluginManager +//{ +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IExternalAuthenticationMethod plugin, List systemNames) => false; +// public bool IsPluginActive(IExternalAuthenticationMethod plugin, List systemNames) => false; - public bool IsPluginActive(IExternalAuthenticationMethod plugin) => false; +// public bool IsPluginActive(IExternalAuthenticationMethod plugin) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(IExternalAuthenticationMethod plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(IExternalAuthenticationMethod plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullDiscountPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullDiscountPluginManager.cs index 5361a93..d33b4bb 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullDiscountPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullDiscountPluginManager.cs @@ -1,26 +1,26 @@ using Nop.Core.Domain.Customers; using Nop.Core.Domain.Discounts; -using Nop.Services.Discounts; -using Nop.Services.Plugins; +//using Nop.Services.Discounts; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; /// /// Null implementation of IDiscountPluginManager for SANDBOX /// -public class NullDiscountPluginManager : IDiscountPluginManager -{ - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullDiscountPluginManager : IDiscountPluginManager +//{ +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IDiscountRequirementRule plugin, List systemNames) => false; +// public bool IsPluginActive(IDiscountRequirementRule plugin, List systemNames) => false; - public Task GetPluginLogoUrlAsync(IDiscountRequirementRule plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(IDiscountRequirementRule plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExchangeRatePluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExchangeRatePluginManager.cs index b87ed19..5bd7fe6 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExchangeRatePluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExchangeRatePluginManager.cs @@ -1,31 +1,31 @@ using Nop.Core.Domain.Customers; -using Nop.Core.Domain.Directory; -using Nop.Services.Directory; -using Nop.Services.Plugins; +//using Nop.Core.Domain.Directory; +//using Nop.Services.Directory; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; /// /// Null implementation of IExchangeRatePluginManager for SANDBOX /// -public class NullExchangeRatePluginManager : IExchangeRatePluginManager -{ - public Task LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullExchangeRatePluginManager : IExchangeRatePluginManager +//{ +// public Task LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public bool IsPluginActive(IExchangeRateProvider exchangeRateProvider) => false; +// public bool IsPluginActive(IExchangeRateProvider exchangeRateProvider) => false; - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IExchangeRateProvider plugin, List systemNames) => false; +// public bool IsPluginActive(IExchangeRateProvider plugin, List systemNames) => false; - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task GetPluginLogoUrlAsync(IExchangeRateProvider plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(IExchangeRateProvider plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExternalAuthenticationService.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExternalAuthenticationService.cs index 5413328..a51e754 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExternalAuthenticationService.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullExternalAuthenticationService.cs @@ -1,35 +1,35 @@ using Microsoft.AspNetCore.Mvc; using Nop.Core.Domain.Customers; -using Nop.Services.Authentication.External; +//using Nop.Services.Authentication.External; namespace Mango.Sandbox.EndPoints.Services; /// /// Null implementation of IExternalAuthenticationService for SANDBOX /// -public class NullExternalAuthenticationService : IExternalAuthenticationService -{ - public Task AuthenticateAsync(ExternalAuthenticationParameters parameters, string returnUrl = null!) - => Task.FromResult(new NotFoundResult()); +//public class NullExternalAuthenticationService : IExternalAuthenticationService +//{ +// public Task AuthenticateAsync(ExternalAuthenticationParameters parameters, string returnUrl = null!) +// => Task.FromResult(new NotFoundResult()); - public Task GetExternalAuthenticationRecordByIdAsync(int externalAuthenticationRecordId) - => Task.FromResult(null); +// public Task GetExternalAuthenticationRecordByIdAsync(int externalAuthenticationRecordId) +// => Task.FromResult(null); - public Task> GetCustomerExternalAuthenticationRecordsAsync(Customer customer) - => Task.FromResult>(new List()); +// public Task> GetCustomerExternalAuthenticationRecordsAsync(Customer customer) +// => Task.FromResult>(new List()); - public Task DeleteExternalAuthenticationRecordAsync(ExternalAuthenticationRecord externalAuthenticationRecord) - => Task.CompletedTask; +// public Task DeleteExternalAuthenticationRecordAsync(ExternalAuthenticationRecord externalAuthenticationRecord) +// => Task.CompletedTask; - public Task GetExternalAuthenticationRecordByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters) - => Task.FromResult(null); +// public Task GetExternalAuthenticationRecordByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters) +// => Task.FromResult(null); - public Task AssociateExternalAccountWithUserAsync(Customer customer, ExternalAuthenticationParameters parameters) - => Task.CompletedTask; +// public Task AssociateExternalAccountWithUserAsync(Customer customer, ExternalAuthenticationParameters parameters) +// => Task.CompletedTask; - public Task GetUserByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters) - => Task.FromResult(null); +// public Task GetUserByExternalAuthenticationParametersAsync(ExternalAuthenticationParameters parameters) +// => Task.FromResult(null); - public Task RemoveAssociationAsync(ExternalAuthenticationParameters parameters) - => Task.CompletedTask; -} +// public Task RemoveAssociationAsync(ExternalAuthenticationParameters parameters) +// => Task.CompletedTask; +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullMultiFactorAuthenticationPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullMultiFactorAuthenticationPluginManager.cs index ed080be..922e4f5 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullMultiFactorAuthenticationPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullMultiFactorAuthenticationPluginManager.cs @@ -1,36 +1,36 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Authentication.MultiFactor; -using Nop.Services.Plugins; +//using Nop.Services.Authentication.MultiFactor; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; /// /// Null implementation of IMultiFactorAuthenticationPluginManager for SANDBOX /// -public class NullMultiFactorAuthenticationPluginManager : IMultiFactorAuthenticationPluginManager -{ - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullMultiFactorAuthenticationPluginManager : IMultiFactorAuthenticationPluginManager +//{ +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task HasActivePluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task HasActivePluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin) => false; +// public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin) => false; - public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin, List systemNames) => false; +// public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin, List systemNames) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(IMultiFactorAuthenticationMethod plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(IMultiFactorAuthenticationMethod plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPaymentPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPaymentPluginManager.cs index 23db962..b17d96e 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPaymentPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPaymentPluginManager.cs @@ -1,36 +1,36 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Payments; -using Nop.Services.Plugins; +//using Nop.Services.Payments; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; -public class NullPaymentPluginManager : IPaymentPluginManager -{ - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullPaymentPluginManager : IPaymentPluginManager +//{ +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, int filterByCountryId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, int filterByCountryId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IPaymentMethod plugin, List systemNames) => false; +// public bool IsPluginActive(IPaymentMethod plugin, List systemNames) => false; - public bool IsPluginActive(IPaymentMethod plugin) => false; +// public bool IsPluginActive(IPaymentMethod plugin) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(IPaymentMethod plugin) - => Task.FromResult(string.Empty); +// public Task GetPluginLogoUrlAsync(IPaymentMethod plugin) +// => Task.FromResult(string.Empty); - public Task> GetRestrictedCountryIdsAsync(IPaymentMethod paymentMethod) - => Task.FromResult>(new List()); +// public Task> GetRestrictedCountryIdsAsync(IPaymentMethod paymentMethod) +// => Task.FromResult>(new List()); - public Task SaveRestrictedCountriesAsync(IPaymentMethod paymentMethod, IList countryIds) - => Task.CompletedTask; -} +// public Task SaveRestrictedCountriesAsync(IPaymentMethod paymentMethod, IList countryIds) +// => Task.CompletedTask; +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPickupPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPickupPluginManager.cs index 6e375ad..7faa52e 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPickupPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullPickupPluginManager.cs @@ -1,30 +1,30 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Plugins; -using Nop.Services.Shipping.Pickup; +//using Nop.Services.Plugins; +//using Nop.Services.Shipping.Pickup; namespace Mango.Sandbox.EndPoints.Services; -public class NullPickupPluginManager : IPickupPluginManager -{ - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullPickupPluginManager : IPickupPluginManager +//{ +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IPickupPointProvider plugin, List systemNames) => false; +// public bool IsPluginActive(IPickupPointProvider plugin, List systemNames) => false; - public bool IsPluginActive(IPickupPointProvider plugin) => false; +// public bool IsPluginActive(IPickupPointProvider plugin) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(IPickupPointProvider plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(IPickupPointProvider plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullSearchPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullSearchPluginManager.cs index d9c496b..fa29bb1 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullSearchPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullSearchPluginManager.cs @@ -1,33 +1,33 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Catalog; -using Nop.Services.Plugins; +//using Nop.Services.Catalog; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; /// /// Null implementation of ISearchPluginManager for SANDBOX /// -public class NullSearchPluginManager : ISearchPluginManager -{ - public Task LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullSearchPluginManager : ISearchPluginManager +//{ +// public Task LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public bool IsPluginActive(ISearchProvider searchProvider) => false; +// public bool IsPluginActive(ISearchProvider searchProvider) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(ISearchProvider plugin, List systemNames) => false; +// public bool IsPluginActive(ISearchProvider plugin, List systemNames) => false; - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task GetPluginLogoUrlAsync(ISearchProvider plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(ISearchProvider plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullShippingPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullShippingPluginManager.cs index d2980f5..ae36f18 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullShippingPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullShippingPluginManager.cs @@ -1,36 +1,36 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Plugins; -using Nop.Services.Shipping; +//using Nop.Services.Plugins; +//using Nop.Services.Shipping; namespace Mango.Sandbox.EndPoints.Services; -public class NullShippingPluginManager : IShippingPluginManager -{ - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullShippingPluginManager : IShippingPluginManager +//{ +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string filterByCountryId = null!) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IShippingRateComputationMethod plugin, List systemNames) => false; +// public bool IsPluginActive(IShippingRateComputationMethod plugin, List systemNames) => false; - public bool IsPluginActive(IShippingRateComputationMethod plugin) => false; +// public bool IsPluginActive(IShippingRateComputationMethod plugin) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(IShippingRateComputationMethod plugin) - => Task.FromResult(string.Empty); +// public Task GetPluginLogoUrlAsync(IShippingRateComputationMethod plugin) +// => Task.FromResult(string.Empty); - public Task> GetRestrictedCountryIdsAsync(IShippingRateComputationMethod shippingMethod) - => Task.FromResult>(new List()); +// public Task> GetRestrictedCountryIdsAsync(IShippingRateComputationMethod shippingMethod) +// => Task.FromResult>(new List()); - public Task SaveRestrictedCountriesAsync(IShippingRateComputationMethod shippingMethod, IList countryIds) - => Task.CompletedTask; -} +// public Task SaveRestrictedCountriesAsync(IShippingRateComputationMethod shippingMethod, IList countryIds) +// => Task.CompletedTask; +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullTaxPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullTaxPluginManager.cs index f105bec..af3bd27 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullTaxPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullTaxPluginManager.cs @@ -1,30 +1,30 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Plugins; -using Nop.Services.Tax; +//using Nop.Services.Plugins; +//using Nop.Services.Tax; namespace Mango.Sandbox.EndPoints.Services; -public class NullTaxPluginManager : ITaxPluginManager -{ - public Task LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +//public class NullTaxPluginManager : ITaxPluginManager +//{ +// public Task LoadPrimaryPluginAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(ITaxProvider plugin, List systemNames) => false; +// public bool IsPluginActive(ITaxProvider plugin, List systemNames) => false; - public bool IsPluginActive(ITaxProvider plugin) => false; +// public bool IsPluginActive(ITaxProvider plugin) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(ITaxProvider plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(ITaxProvider plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullWidgetPluginManager.cs b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullWidgetPluginManager.cs index c687b92..f9453a4 100644 --- a/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullWidgetPluginManager.cs +++ b/Tests/Mango.Sandbox/Mango.Sandbox.EndPoints/Services/NullWidgetPluginManager.cs @@ -1,30 +1,30 @@ using Nop.Core.Domain.Customers; -using Nop.Services.Cms; -using Nop.Services.Plugins; +//using Nop.Services.Cms; +//using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; -public class NullWidgetPluginManager : IWidgetPluginManager -{ - public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string widgetZone = null!) - => Task.FromResult>(new List()); +//public class NullWidgetPluginManager : IWidgetPluginManager +//{ +// public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, string widgetZone = null!) +// => Task.FromResult>(new List()); - public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(null); +// public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(null); - public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) - => Task.FromResult>(new List()); +// public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) +// => Task.FromResult>(new List()); - public bool IsPluginActive(IWidgetPlugin plugin, List systemNames) => false; +// public bool IsPluginActive(IWidgetPlugin plugin, List systemNames) => false; - public bool IsPluginActive(IWidgetPlugin plugin) => false; +// public bool IsPluginActive(IWidgetPlugin plugin) => false; - public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) - => Task.FromResult(false); +// public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) +// => Task.FromResult(false); - public Task GetPluginLogoUrlAsync(IWidgetPlugin plugin) - => Task.FromResult(string.Empty); -} +// public Task GetPluginLogoUrlAsync(IWidgetPlugin plugin) +// => Task.FromResult(string.Empty); +//} diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Mango.Sandbox.SignalRTestClient.csproj b/Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Mango.Sandbox.SignalRTestClient.csproj deleted file mode 100644 index bd8e06d..0000000 --- a/Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Mango.Sandbox.SignalRTestClient.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - Exe - net9.0 - enable - enable - - - - - diff --git a/Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Program.cs b/Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Program.cs deleted file mode 100644 index a0dcd51..0000000 --- a/Tests/Mango.Sandbox/Mango.Sandbox.SignalRTestClient/Program.cs +++ /dev/null @@ -1,48 +0,0 @@ -// SignalR Test Client - teszteli a SANDBOX kapcsolatot -using Microsoft.AspNetCore.SignalR.Client; -using System.Text.Json; - -Console.WriteLine("=== SANDBOX SignalR Test Client ==="); - -var hubUrl = "http://localhost:59579/fbHub"; -Console.WriteLine($"Connecting to: {hubUrl}"); - -var connection = new HubConnectionBuilder() - .WithUrl(hubUrl) - .WithAutomaticReconnect() - .Build(); - -connection.On("ReceiveMessage", (tag, data) => -{ - Console.WriteLine($"Received message - Tag: {tag}, Data length: {data?.Length ?? 0}"); -}); - -try -{ - await connection.StartAsync(); - Console.WriteLine($"Connected! State: {connection.State}"); - - // Teszt: GetMeasuringUsers (tag 70) hívása - Console.WriteLine("\nTesting GetMeasuringUsers (tag 70)..."); - - // A SignalR metódus hívása - a szerver "ReceiveMessage" metódusát hívjuk - // MessagePack formátumban küldjük az adatot - var requestData = new { Tag = 70, Data = Array.Empty() }; - - await connection.InvokeAsync("ReceiveMessage", 70, Array.Empty()); - - Console.WriteLine("Message sent! Waiting for response..."); - await Task.Delay(3000); - - Console.WriteLine("\nTest completed!"); -} -catch (Exception ex) -{ - Console.WriteLine($"Error: {ex.Message}"); - Console.WriteLine($"Stack: {ex.StackTrace}"); -} -finally -{ - await connection.StopAsync(); - Console.WriteLine("Disconnected."); -}