mirror of
https://github.com/bitwarden/server.git
synced 2024-12-30 18:17:36 +01:00
18 lines
415 B
C#
18 lines
415 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Infrastructure.EFIntegration.Test.Repositories.EqualityComparers;
|
|
|
|
public class SsoUserCompare : IEqualityComparer<SsoUser>
|
|
{
|
|
public bool Equals(SsoUser x, SsoUser y)
|
|
{
|
|
return x.ExternalId == y.ExternalId;
|
|
}
|
|
|
|
public int GetHashCode([DisallowNull] SsoUser obj)
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|