Skip to content

Commit

Permalink
Mark persons from testUsers.json with missing ssn as selfIdentified (…
Browse files Browse the repository at this point in the history
…#9534)

Co-authored-by: Ivar <[email protected]>
  • Loading branch information
ivarne and ivarne authored Jan 10, 2023
1 parent f981775 commit 273d928
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/TestData/AppTestDataModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public Party ToParty(List<AppTestOrg>? potentialChildOrgs = null)
PartyId = PartyId,
OrgNumber = OrgNumber,
IsDeleted = false,
PartyTypeName = Altinn.Platform.Register.Enums.PartyType.Organisation, // TODO: consider supporting bankrupt
PartyTypeName = Altinn.Platform.Register.Enums.PartyType.Organisation, // TODO: consider supporting bankrupt or subUnit
Name = Name,
ChildParties = childParties,
//HelperFieldsSetLater
Expand Down Expand Up @@ -266,9 +266,9 @@ public Party ToParty(List<AppTestOrg>? possibleChildParties = null)
{
PartyId = PartyId,
IsDeleted = false,
SSN = SSN,
SSN = string.IsNullOrEmpty(SSN) ? null : SSN,
Name = GetFullName(),
PartyTypeName = Altinn.Platform.Register.Enums.PartyType.Person, // TODO: consider supporting selfIdentified
PartyTypeName = string.IsNullOrEmpty(SSN) ? Altinn.Platform.Register.Enums.PartyType.SelfIdentified : Altinn.Platform.Register.Enums.PartyType.Person,
ChildParties = childParties,
//HelperFieldsSetLater
// OnlyHierarchyElementWithNoAccess =
Expand Down

0 comments on commit 273d928

Please sign in to comment.