public BundleInfoAssembler AddProduct(string name, decimal quantity, decimal discountValue) { var product = _products.Get(name); _bundleInfo.ProductDiscounts.Add( new ProductDiscount(product.Info, quantity, discountValue)); return(this); }
public Product Get(string name, Action <ProductAssembler> product) { return(_productsTable.Get(name, product)); }