InvitesRepositoryTests

+ other reworks
This commit is contained in:
Artemy
2025-06-24 19:17:27 +07:00
parent 80e2ec30c6
commit f99ec0b17b
12 changed files with 378 additions and 23 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using Govor.Core.Infrastructure.Validators;
using Govor.Core.Models;
namespace Govor.Core.DTOs;
@@ -13,6 +14,6 @@ public record RegistrationDto
[Required]
[MinLength(8)]
public string Password { get; init; }
[MinLength(8)]
[MinLength(InvitationValidator.MIN_INVITATION_LENGTH)]
public string InviteLink { get; init; }
}