public void StartWatchers(int count) { var mockEventWatchers = GetMockEventWatchers(count); var _eventWatcherManager = new EventWatcherManager(mockEventWatchers.Select(o => o.Object)); _eventWatcherManager.Start(); mockEventWatchers.ForEach(m => m.Verify(obj => obj.Start(), Times.Once)); }
public Engine( IPersistence persistence, EventWatcherManager eventWatcherManager, RequestEvaluatorManager requestEvaluatorManager) { _dataSets = new List <IDataSet>(); _persistence = persistence; _eventWatcherManager = eventWatcherManager; _requestEvaluatorManager = requestEvaluatorManager; Load(); _eventWatcherManager?.Start(); _requestEvaluatorManager?.Start(); }