You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
497 B
19 lines
497 B
using System.Diagnostics.CodeAnalysis; |
|
using Bit.Core.AdminConsole.Entities; |
|
|
|
namespace Bit.Infrastructure.EFIntegration.Test.AdminConsole.Repositories.EqualityComparers; |
|
|
|
public class GroupCompare : IEqualityComparer<Group> |
|
{ |
|
public bool Equals(Group x, Group y) |
|
{ |
|
return x.Name == y.Name && |
|
x.AccessAll == y.AccessAll && |
|
x.ExternalId == y.ExternalId; |
|
} |
|
|
|
public int GetHashCode([DisallowNull] Group obj) |
|
{ |
|
return base.GetHashCode(); |
|
} |
|
}
|
|
|