Ejemplo n.º 1
0
 private Customer4(Guid customerId,
                   string firstName,
                   string lastName,
                   string middleName,
                   string title,
                   Address3 address,
                   DateTime dateOfBirth,
                   CountryCode countryOfBirth,
                   string idDocumentType,
                   string idDocumentNumber,
                   string vatNumber,
                   CountryCode vatCountry,
                   IAddressRepository4 addressRepository) : this(customerId,
                                                                 firstName,
                                                                 lastName,
                                                                 middleName,
                                                                 title,
                                                                 address,
                                                                 dateOfBirth,
                                                                 countryOfBirth,
                                                                 idDocumentType,
                                                                 idDocumentNumber,
                                                                 vatNumber,
                                                                 vatCountry)
 {
     _addressRepository = addressRepository;
 }
Ejemplo n.º 2
0
 public static OperationResult <Customer4> Create(Guid customerId,
                                                  string firstName,
                                                  string lastName,
                                                  string middleName,
                                                  string title,
                                                  Address3 address,
                                                  DateTime dateOfBirth,
                                                  CountryCode countryOfBirth,
                                                  string idDocumentType,
                                                  string idDocumentNumber,
                                                  string vatNumber,
                                                  CountryCode vatCountry,
                                                  IAddressRepository4 addressRepository
                                                  )
 {
     return(OperationResult <Customer4> .Success(new Customer4(customerId,
                                                               firstName,
                                                               lastName,
                                                               middleName,
                                                               title,
                                                               address,
                                                               dateOfBirth,
                                                               countryOfBirth,
                                                               idDocumentType,
                                                               idDocumentNumber,
                                                               vatNumber,
                                                               vatCountry
                                                               )));
 }
 public ChangeCustomerAddressCommandHandler4(ICustomerRepository4 customerRepository,
                                             IAddressRepository4 addressRepository)
 {
     _customerRepository = customerRepository;
     _addressRepository  = addressRepository;
 }