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