コード例 #1
0
 public void Scan(string code)
 {
     try
     {
         var item  = _scanner.ScanCode(code);
         var price = _pricingService.GetPriceForStockItem(item.Code);
         _orderList.AddItem(item, price);
     }
     catch (Exception ex)
     {
         throw new ItemCounldNotBeProcessedException("Could not process item. See inner exception for more details", ex);
     }
 }