コード例 #1
0
 public async Task <bool> GetResultAsync(PurchaseOrder purchaseOrder)
 {
     if (purchaseOrder.PurchaseOrderType == PurchaseOrderType.Product)
     {
         var shippingSlip = _purchaseOrderService.GeneratePurchaseOrderSlip(purchaseOrder.ProductLines);
         _printerService.PrintText(shippingSlip);
     }
     return(await _nextRule.GetResultAsync(purchaseOrder));
 }