public void ReturnFalseGivenTwoEntitiesWithDifferentGuidId() { var entity1 = new TestGuidEntity(Guid.NewGuid()); var entity2 = new TestGuidEntity(Guid.NewGuid()); Assert.IsFalse(entity1.Equals(entity2)); }
public void ReturnTrueGivenTwoEntitiesWithSameGuidId() { Guid key = Guid.NewGuid(); var entity1 = new TestGuidEntity(key); var entity2 = new TestGuidEntity(key); Assert.IsTrue(entity1.Equals(entity2)); }