public bool Approve(ApproveRequest approveRequest) { if (IsBanned(approveRequest.Customer)) { return(false); } return(true); }
public bool Approve(ApproveRequest approveRequest) { foreach (var approval in approvals) { bool isOk = approval.Approve(approveRequest); if (!isOk) { return(false); } } return(true); }
public bool Approve(ApproveRequest approveRequest) { // check if the order price is to high for the trust we have in this customer return(true); }