Esempio n. 1
0
 public CachingNode(ICalculationNode decoratedNode, ICycleGuard cycleGuard, IEventBuffer eventBuffer)
 {
     _decoratedNode = decoratedNode;
     _cycleGuard    = cycleGuard;
     _eventBuffer   = eventBuffer;
     _decoratedNode.ValueChanged += DecoratedNodeOnValueChanged;
 }
Esempio n. 2
0
 public CachingNode(ICalculationNode decoratedNode, ICycleGuard cycleGuard)
 {
     _decoratedNode = decoratedNode;
     _cycleGuard    = cycleGuard;
     _decoratedNode.ValueChanged += DecoratedNodeOnValueChanged;
 }
Esempio n. 3
0
        private static CachingNode CreateSut(double?value = null, ICycleGuard cycleGuard = null)
        {
            var decoratedNode = NodeHelper.MockNode(value);

            return(CreateSut(decoratedNode, cycleGuard));
        }
Esempio n. 4
0
 private static CachingNode CreateSut(
     ICalculationNode decoratedNode, ICycleGuard cycleGuard = null, IEventBuffer eventBuffer = null)
 => new CachingNode(decoratedNode, cycleGuard ?? Mock.Of <ICycleGuard>(), eventBuffer ?? new EventBuffer());
Esempio n. 5
0
 private static CachingNode CreateSut(ICalculationNode decoratedNode, ICycleGuard cycleGuard = null)
 {
     return(new CachingNode(decoratedNode, cycleGuard ?? Mock.Of <ICycleGuard>()));
 }