mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +01:00
21 lines
518 B
C#
21 lines
518 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Infrastructure.EFIntegration.Test.Repositories.EqualityComparers;
|
|
|
|
public class CipherCompare : IEqualityComparer<Cipher>
|
|
{
|
|
public bool Equals(Cipher x, Cipher y)
|
|
{
|
|
return x.Type == y.Type &&
|
|
x.Data == y.Data &&
|
|
x.Favorites == y.Favorites &&
|
|
x.Attachments == y.Attachments;
|
|
}
|
|
|
|
public int GetHashCode([DisallowNull] Cipher obj)
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|