Exemplo n.º 1
0
        protected override void Context()
        {
            _observerLoader   = A.Fake <IObserverLoader>();
            _executionContext = A.Fake <IExecutionContext>();
            _objectIdResetter = A.Fake <IObjectIdResetter>();
            sut = new ObserverTask(_executionContext, _observerLoader, _objectIdResetter);

            _observer1   = new AmountObserverBuilder().WithName("OBS1");
            _observer2   = new AmountObserverBuilder().WithName("OBS2");
            _observerSet = new ObserverSet();
        }
Exemplo n.º 2
0
 public ObserverTask(IExecutionContext executionContext, IObserverLoader observerLoader, IObjectIdResetter objectIdResetter)
 {
     _executionContext = executionContext;
     _observerLoader   = observerLoader;
     _objectIdResetter = objectIdResetter;
 }