namespace DigitalData.Core.Tests.Mock;

public class User : UserBase
{
    public required int Id { get; init; }

    public override int GetHashCode() => HashCode.Combine(Id, FirstName, Email, Age);

    public override bool Equals(object? obj)
        => (obj is User user && user.GetHashCode() == GetHashCode())
        || (obj is UserBase userBase && userBase.GetHashCode() == base.GetHashCode());
}
