internal bool ExpectOperation(string operationID, string contraAccountID, decimal amount) { if (pendingChanges.Any(c => c.OperationID == operationID && c.ContraAccountID == contraAccountID)) { return(false); } var change = new Change(ChangeTopic.PendingTransfer) { OperationID = operationID, ContraAccountID = contraAccountID, Amount = amount, }; AddPending(change); return(true); }