15 lines
357 B
Python
15 lines
357 B
Python
from __future__ import annotations
|
|
|
|
from typing import List
|
|
|
|
from ..core import PlanDelta
|
|
|
|
|
|
class MockBrokerAdapter:
|
|
def __init__(self):
|
|
self.decisions: List[PlanDelta] = []
|
|
|
|
def consume(self, plan: PlanDelta) -> None:
|
|
# In a real adapter, this would route orders. Here we record for testability.
|
|
self.decisions.append(plan)
|