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); }
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); }