public CachingNode(ICalculationNode decoratedNode, ICycleGuard cycleGuard, IEventBuffer eventBuffer) { _decoratedNode = decoratedNode; _cycleGuard = cycleGuard; _eventBuffer = eventBuffer; _decoratedNode.ValueChanged += DecoratedNodeOnValueChanged; }
public CachingNode(ICalculationNode decoratedNode, ICycleGuard cycleGuard) { _decoratedNode = decoratedNode; _cycleGuard = cycleGuard; _decoratedNode.ValueChanged += DecoratedNodeOnValueChanged; }
private static CachingNode CreateSut(double?value = null, ICycleGuard cycleGuard = null) { var decoratedNode = NodeHelper.MockNode(value); return(CreateSut(decoratedNode, cycleGuard)); }
private static CachingNode CreateSut( ICalculationNode decoratedNode, ICycleGuard cycleGuard = null, IEventBuffer eventBuffer = null) => new CachingNode(decoratedNode, cycleGuard ?? Mock.Of <ICycleGuard>(), eventBuffer ?? new EventBuffer());
private static CachingNode CreateSut(ICalculationNode decoratedNode, ICycleGuard cycleGuard = null) { return(new CachingNode(decoratedNode, cycleGuard ?? Mock.Of <ICycleGuard>())); }