mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
19 lines
461 B
C#
19 lines
461 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();
|
|
}
|
|
}
|
|
}
|