public void Create_Pnr_NullReferenceID() { string pnr = Utilities.RandomCprNumber(); var ret = PersonRelationTypeHelper.Create <TRelation>(pnr, null, null); Assert.Null(ret.ReferenceID); }
public void Create_Pnr_CorrectPnr() { string pnr = Utilities.RandomCprNumber(); var ret = PersonRelationTypeHelper.Create <TRelation>(pnr, null, null); Assert.AreEqual(pnr, ret.CprNumber); }
public void Create_Uuid_NullPnr() { Guid uuid = Guid.NewGuid(); var ret = PersonRelationTypeHelper.Create <TRelation>(uuid, null, null); Assert.Null(ret.CprNumber); }
public void Create_Uuid_CorrectUuid() { Guid uuid = Guid.NewGuid(); var ret = PersonRelationTypeHelper.Create <TRelation>(uuid, null, null); Assert.AreEqual(uuid.ToString(), ret.ReferenceID.Item); }
public void Create_EmptyUuid_ThrowsException() { Guid uuid = Guid.Empty; PersonRelationTypeHelper.Create <TRelation>(uuid, null, null); }
public void Create_NullPnr_ThrowsException() { string pnr = null; PersonRelationTypeHelper.Create <TRelation>(pnr, null, null); }