22 lines
625 B
C#
22 lines
625 B
C#
namespace Fengling.RiskControl.Domain.Aggregates.RiskScores;
|
|
|
|
public class RiskFactor
|
|
{
|
|
public string FactorType { get; private set; } = string.Empty;
|
|
public int Points { get; private set; }
|
|
public string Description { get; private set; } = string.Empty;
|
|
public DateTime CreatedAt { get; private set; } = DateTime.UtcNow;
|
|
|
|
private RiskFactor() { }
|
|
|
|
public static RiskFactor Create(string factorType, int points, string description)
|
|
{
|
|
return new RiskFactor
|
|
{
|
|
FactorType = factorType,
|
|
Points = points,
|
|
Description = description
|
|
};
|
|
}
|
|
}
|