public Product(int amount, Label label, Price price, Location location) { if (Security.AnyNullOrEmpty(label.ArticleNumber1, label.Name, location.WorldLocation, location.InventoryLocation, amount, label.Tags, label.Catagory, price.AcquisitionPrice, price.SalesPrice)) { throw new ArgumentNullException("Du det dårligste menneske jeg kender."); } ArticleNumber1 = label.ArticleNumber1; Name = label.Name; WorldLocation = location.WorldLocation; InventoryLocation = location.InventoryLocation; Amount = amount; AcquisitionPrice = price.AcquisitionPrice; Tags = label.Tags; Catagory = label.Catagory; SalesPrice = price.SalesPrice; }
public SparePart(int amount, Label label, Price price, Location location) : base(amount, label, price, location) { }