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);
        }
예제 #2
0
 public Product Get(string name, Action <ProductAssembler> product)
 {
     return(_productsTable.Get(name, product));
 }