static void Main(string[] args) { NodeMediator mediator = new NodeMediator(); NodeFactory factory = NodeFactory.Instance; CircuitBuilder builder = new CircuitBuilder(mediator, factory); CircuitController ctrl = new CircuitController(mediator, builder); }
public CircuitBuilder(NodeMediator mediator, NodeFactory factory) { _NodeMediator = mediator; _NodeFactory = factory; }
public CircuitController(NodeMediator mediator, CircuitBuilder circuit) { _NodeMediator = mediator; _CircuitBuilder = circuit; }