user create command and user repo

This commit is contained in:
2026-02-04 22:18:05 +01:00
parent b73fd8eb05
commit 01f25fb093
10 changed files with 136 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
using AipsCore.Domain.Abstract.Rule;
using AipsCore.Domain.Abstract.ValueObject;
using AipsCore.Domain.Common.Validation;
using AipsCore.Domain.Common.Validation.Rules;
namespace AipsCore.Domain.Common.ValueObjects;
@@ -17,6 +18,8 @@ public record DomainId : AbstractValueObject
protected override ICollection<IRule> GetValidationRules()
{
return [];
return [
new MinLengthRule(IdValue, 5)
];
}
}