Esempio n. 1
0
 private static PersonIdentifier CompositeIdentifier(
     IdentifierDefinition definition, params PersonIdentifier[] identifiers) =>
 new PersonIdentifier(
     new CompositeIdentifierValue <PersonIdentifier>(
         identifiers.Where(_ => _.Value.Value != null).ToArray()),
     definition
     );
Esempio n. 2
0
 public PersonIdentifier(IIdentifierValue value, IdentifierDefinition definition)
 {
     Value      = value;
     Definition = definition;
 }
Esempio n. 3
0
 public static Api.Client.Models.IdentifierDefinition ConvertToClientDefinition(this IdentifierDefinition definition)
 {
     return(new Api.Client.Models.IdentifierDefinition(
                definition.SystemName,
                ConvertToClientType <IdentifierDefinition>(definition.Type, ConvertToClientDefinition),
                definition.Name
                ));
 }
Esempio n. 4
0
 public static PersonIdentifier PersonIdentifier <T>(T value, IdentifierDefinition definition) =>
 new PersonIdentifier(new SimpleIdentifierValue(value), definition);
Esempio n. 5
0
 private static PersonIdentifier PersonIdentifier <T>(T value, IdentifierDefinition definition)
 => Testing.Utils.Identifiers.PersonIdentifier(value, definition);