Пример #1
0
 internal Customer(CustomerType type, string note, string name, IDataAccessFacade dataAccessFacade)
 {
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _customerEntity       = dataAccessFacade.CreateCustomer(type, note, name);
     initializeParty(_customerEntity);
 }
Пример #2
0
 internal Customer(CustomerType type, string note, string name, IDataAccessFacade dataAccessFacade)
 {
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _customerEntity = dataAccessFacade.CreateCustomer(type, note, name);
     initializeParty(_customerEntity);
 }