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