Exemplo n.º 1
0
 private static PersonIdentifier CompositeIdentifier(
     IdentifierDefinition definition, params PersonIdentifier[] identifiers) =>
 new PersonIdentifier(
     new CompositeIdentifierValue <PersonIdentifier>(
         identifiers.Where(_ => _.Value.Value != null).ToArray()),
     definition
     );
Exemplo n.º 2
0
 public PersonIdentifier(IIdentifierValue value, IdentifierDefinition definition)
 {
     Value      = value;
     Definition = definition;
 }
Exemplo 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
                ));
 }
Exemplo n.º 4
0
 public static PersonIdentifier PersonIdentifier <T>(T value, IdentifierDefinition definition) =>
 new PersonIdentifier(new SimpleIdentifierValue(value), definition);
Exemplo n.º 5
0
 private static PersonIdentifier PersonIdentifier <T>(T value, IdentifierDefinition definition)
 => Testing.Utils.Identifiers.PersonIdentifier(value, definition);