Example #1
0
        public void Update(Commodity commodity, int?sell, int?buy)
        {
            StockItem item = Goods.Single(g => g.Commodity == commodity);

            item.Update(sell, buy);
        }
Example #2
0
 public void Add(Commodity commodity)
 {
     this.Goods.Add(StockItem.New(commodity));
 }