public Customer CustomerIdentifiedAs(string anIdentificationType, string anIdentificationNumber) { List <Customer> customers = new List <Customer>(); foreach (var supplier in suppliers) { customers = customers.Union(supplier.Customers).ToList(); } _customerSystem = new TransientCustomerSystem(customers); return(_customerSystem.CustomerIdentifiedAs(anIdentificationType, anIdentificationNumber)); }
public TransientErpSystem() { _customerSystem = new TransientCustomerSystem(this); _supplierSystem = new TransientSupplierSystem(this); }
public TransientSupplierSystem(TransientCustomerSystem customerSystem) { _customerSystem = customerSystem; }