1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-30 18:17:36 +01:00
bitwarden-server/test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/UserKdfInformation.cs
2022-08-29 16:06:55 -04:00

19 lines
513 B
C#

using System.Diagnostics.CodeAnalysis;
using Bit.Core.Models.Data;
namespace Bit.Infrastructure.EFIntegration.Test.Repositories.EqualityComparers;
public class UserKdfInformationCompare : IEqualityComparer<UserKdfInformation>
{
public bool Equals(UserKdfInformation x, UserKdfInformation y)
{
return x.Kdf == y.Kdf &&
x.KdfIterations == y.KdfIterations;
}
public int GetHashCode([DisallowNull] UserKdfInformation obj)
{
return base.GetHashCode();
}
}