From 99bfaf960bb0d68c9ce217914019296cc6890b8d Mon Sep 17 00:00:00 2001 From: Loretta Date: Thu, 11 Dec 2025 23:46:36 +0100 Subject: [PATCH] Minimal SignalR test hub and endpoint for isolated testing Refactored Mango.Sandbox.EndPoints to enable minimal, dependency-light SignalR endpoint testing. Introduced DevAdminSignalRHubSandbox and TestSignalREndpoint for protocol/contract tests without full NopCommerce/FruitBank infra. Added SignalRClientSandbox and comprehensive MSTest coverage for all parameter types. Simplified Program.cs startup, updated project references, and added minimal logger. Original SignalREndpointTests replaced with focused, low-level and high-level tests. CORS and DTOs updated for compatibility. --- Mango.Nop.Core/Models/MgLoginModelRequest.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Mango.Nop.Core/Models/MgLoginModelRequest.cs b/Mango.Nop.Core/Models/MgLoginModelRequest.cs index 09d48df..eeb1852 100644 --- a/Mango.Nop.Core/Models/MgLoginModelRequest.cs +++ b/Mango.Nop.Core/Models/MgLoginModelRequest.cs @@ -3,8 +3,15 @@ using Mango.Nop.Core.Interfaces; namespace Mango.Nop.Core.Models; -public class MgLoginModelRequest(string email, string password) : IAcModelDtoBaseEmpty +public class MgLoginModelRequest : IAcModelDtoBaseEmpty { - public string Email { get; set; } = email; - public string Password { get; set; } = password; + public MgLoginModelRequest(){} + public MgLoginModelRequest(string email, string password) + { + Email = email; + Password = password; + } + + public string Email { get; set; } + public string Password { get; set; } } \ No newline at end of file