Ejemplo n.º 1
0
 internal Supplier(string name, string note, SupplierType type, IDataAccessFacade dataAccessFacade)
 {
     //Calls validation on "name" for securing right input.
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _supplierEntity       = dataAccessFacade.CreateSupplier(name, note, type);
     //Calls party class to put supplierentity as a party.
     initializeParty(_supplierEntity);
 }
Ejemplo n.º 2
0
 internal Supplier(string name, string note, SupplierType type, IDataAccessFacade dataAccessFacade)
 {
     //Calls validation on "name" for securing right input.
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _supplierEntity = dataAccessFacade.CreateSupplier(name, note, type);
     //Calls party class to put supplierentity as a party.
     initializeParty(_supplierEntity);
 }