This commit is contained in:
Zeeshaun
2026-04-07 14:21:04 -05:00
parent e37826fe30
commit 75ea216a17
264 changed files with 15920 additions and 0 deletions
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using LCU.Library.Internal.LoanRateModels.Enums;
namespace LCU.Library.Internal.LoanRateModels.Requests.LoadTestRequest;
public class LoadTestInitiateRequest
{
[Required]
public RateTypes? RateType { get; set; }
[PropertyListValidation]
public Dictionary<string, List<string>> PropertyList { get; set; }
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class PropertyListValidation : ValidationAttribute
{
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
{
if (!(value is Dictionary<string, List<string>> dictionary))
return new ValidationResult("Object is not of proper type");
if (dictionary.ContainsKey(nameof(RateRequest.RateType)))
{
return new ValidationResult($"{nameof(RateRequest.RateType)} cannot be declared in the PropertyList.");
}
return ValidationResult.Success;
}
}
@@ -0,0 +1,7 @@
using LCU.Library.Internal.LoanRateModels.Entities.LoadTestingEntities;
namespace LCU.Library.Internal.LoanRateModels.Requests.LoadTestRequest;
public class LoadTestProcessRateRequest
{
public RateProcessingInfo RateProcessingInfo { get; set; }
}
@@ -0,0 +1,7 @@
using LCU.Library.Internal.LoanRateModels.Entities.LoadTestingEntities;
namespace LCU.Library.Internal.LoanRateModels.Requests.LoadTestRequest;
public class LoadTestRateCompletionRequest
{
public RateProcessingInfo RateProcessingInfo { get; set; }
}