public void AssignUuids_EmptySpousePnr_Exception( [ValueSource(typeof(RelationListeTypeTests), "FieldNames")] string relationName) { var rel = new RelationListeType(); var subRel = rel.CreateRelation(relationName); rel.SetRelation(relationName, new IPersonRelationType[] { subRel }); rel.AssignUuids(CprToUuid); }
public void AssignUuids_ValidSpousePnr_CorrectUuid( [ValueSource(typeof(RelationListeTypeTests), "FieldNames")] string relationName) { var pnr = Utilities.RandomCprNumber(); var rel = new RelationListeType(); var subRel = rel.CreateRelation(relationName); subRel.CprNumber = pnr; rel.SetRelation(relationName, new IPersonRelationType[] { subRel }); rel.AssignUuids(CprToUuid); Assert.AreEqual(UuidMap[pnr].ToString(), rel.GetRelation(relationName)[0].ReferenceID.Item); }