public void ShouldReturnFalseOnNullIdentifier() { var entity = new SourceSystem(); entity.Identifiers.Add(new MdmId { SystemName = "A", Identifier = "A" }); MdmId value = null; Assert.IsFalse(entity.HasIdentifier(value)); }
public void ShouldReturnFalseIfNotPresent() { var entity = new SourceSystem(); entity.Identifiers.Add(new MdmId { SystemName = "A", Identifier = "A" }); var value = new MdmId { SystemName = "B", Identifier = "B" }; Assert.IsFalse(entity.HasIdentifier(value)); }