Exemplo n.º 1
0
 protected Book(ValidNonEmptyString name, ValidPositiveIntegerNumber uid, USDollarsMoney basePrice) : base(name, uid, basePrice)
 {
 }
Exemplo n.º 2
0
 public void ChangeUidCode(ValidPositiveIntegerNumber newUid)
 {
     Uid = newUid.Value;
 }
Exemplo n.º 3
0
 public static Product CreateNew(ValidNonEmptyString name, ValidPositiveIntegerNumber uid, USDollarsMoney basePrice)
 {
     return(new Book(name, uid, basePrice));
 }
Exemplo n.º 4
0
 protected Product(ValidNonEmptyString name, ValidPositiveIntegerNumber uid, USDollarsMoney basePrice)
 {
     Name      = name.ToString();
     Uid       = uid.Value;
     BasePrice = basePrice;
 }