예제 #1
0
 public Product(string name, string description, ProductType type, float unitPrice,
                int availableQuantity = 0)
 {
     Name              = new ProductName(name);
     Description       = new ProductDescription(description);
     Type              = type;
     UnitPrice         = unitPrice;
     AvailableQuantity = availableQuantity;
 }
예제 #2
0
 public void SetDescription(string description)
 {
     Description = new ProductDescription(description);
 }