You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that it is possible to have equality of two different implementations of the TypedIdValueBase, if the underlying Guid is the same. I think, this shouldn't be the case, should it?
For example, I would expect this test to turn green:
public class DifferentTypedIdWithSameGuidTests
{
[Test]
public void Test()
{
var commonId = Guid.NewGuid();
var firstId = new FirstEntityId(commonId);
var secondId = new SecondEntityId(commonId);
Assert.False(firstId.Equals(secondId));
}
}
public class FirstEntityId : TypedIdValueBase
{
public FirstEntityId(Guid value)
: base(value)
{
}
}
public class SecondEntityId : TypedIdValueBase
{
public SecondEntityId(Guid value)
: base(value)
{
}
}
Best regards,
David
The text was updated successfully, but these errors were encountered:
Hi there,
I noticed that it is possible to have equality of two different implementations of the TypedIdValueBase, if the underlying Guid is the same. I think, this shouldn't be the case, should it?
For example, I would expect this test to turn green:
Best regards,
David
The text was updated successfully, but these errors were encountered: