Beispiel #1
0
 public static Customer2 Create(Guid customerId,
                                string firstName,
                                string lastName,
                                string middleName,
                                string title,
                                Address2 address,
                                DateTime dateOfBirth,
                                CountryCode countryOfBirth,
                                string idDocumentType,
                                string idDocumentNumber,
                                string vatNumber,
                                CountryCode vatCountry)
 {
     return(new Customer2(customerId,
                          firstName,
                          lastName,
                          middleName,
                          title,
                          address,
                          dateOfBirth,
                          countryOfBirth,
                          idDocumentType,
                          idDocumentNumber,
                          vatNumber,
                          vatCountry
                          ));
 }
Beispiel #2
0
 private Customer2(Guid customerId,
                   string firstName,
                   string lastName,
                   string middleName,
                   string title,
                   Address2 address,
                   DateTime dateOfBirth,
                   CountryCode countryOfBirth,
                   string idDocumentType,
                   string idDocumentNumber,
                   string vatNumber,
                   CountryCode vatCountry)
 {
     CustomerId       = customerId;
     FirstName        = firstName;
     LastName         = lastName;
     MiddleName       = middleName;
     Title            = title;
     Address          = address;
     DateOfBirth      = dateOfBirth;
     CountryOfBirth   = countryOfBirth;
     IdDocumentType   = idDocumentType;
     IdDocumentNumber = idDocumentNumber;
     VatNumber        = vatNumber;
     VatCountry       = vatCountry;
 }