예제 #1
0
 public Product(ProductCode code, ProductPrice price) : this(code, price, new EmptySpecialOffer())
 {
 }
예제 #2
0
 public Product(ProductCode code, ProductPrice price, ISpecialOffer specialOffer)
 {
     Code         = code;
     Price        = price;
     SpecialOffer = specialOffer;
 }
예제 #3
0
 public bool TryGetProduct(ProductCode productCode, out Product product)
 {
     return(_products.TryGetValue(productCode, out product));
 }