public static Product ToProduct(this ProductPrice price)
 {
     return(new Product(price.ProductCode,
                        price.Price,
                        price.VolumePrice?.ToVolume() ?? Volume.None));
 }
Example #2
0
 public void SetPricing(ProductPrice product)
 {
     _priceList.Add(product.Code, product);
 }
Example #3
0
 private bool IsApplicablePrice(int qantity, ProductPrice price)
 {
     return(qantity >= price.ProductQantity);
 }