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)); }