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