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
+13
View File
@@ -4,9 +4,22 @@ public class Invitation
{
public Guid Id { get; set; }
public bool IsAdmin { get; set; }
public string Code { get; set; }
public string Description { get; set; }
public DateTime DateCreated { get; set; }
public DateTime EndDate { get; set; }
public int MaxParticipants { get; set; }
public List<User> Users { get; set; } = new List<User>();
public override bool Equals(object? obj)
{
var invitation = obj as Invitation ?? throw new InvalidCastException();
return Id == invitation.Id &&
IsAdmin == invitation.IsAdmin &&
Description == invitation.Description &&
DateCreated == invitation.DateCreated &&
EndDate == invitation.EndDate &&
MaxParticipants == invitation.MaxParticipants;
}
}