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