Пример #1
0
 public Callback(
     IEnumerable <IShouldRestockRule> restockingRules,
     IStoreProposals store,
     IFetchSuppliers supplierSource,
     IEnumerable <IAutomationRule> automationRules)
 {
     this.restockingRules = restockingRules;
     this.store           = store;
     this.supplierSource  = supplierSource;
     this.automationRules = automationRules;
 }
Пример #2
0
        public virtual Proposal WithSuppliers(IFetchSuppliers supplierSource)
        {
            IEnumerable <Supplier> theSuppliers = supplierSource.GetSuppliers(product);

            return(new Proposal(product, theSuppliers));
        }
Пример #3
0
 public override Proposal WithSuppliers(
     IFetchSuppliers supplierSource)
 {
     return(this);
 }