Example #1
0
 public Storage(string name, int price, int priceForRepairs, int amount)
 {
     SparePart       = new SparePart(name, price);
     PriceForRepairs = priceForRepairs;
     Amount          = amount;
 }
Example #2
0
 public void AddToBasket(string brokenPartName, int brokenPartPrice)
 {
     _basket = new SparePart(brokenPartName, brokenPartPrice);
 }