public void SetUp() { this.view = new MockCommentsBarView(); this.eventAggregator = new MockEventAggregator(); this.timelineModel = new MockTimelineModel(); this.timelineBarRegistry = new MockTimelineBarRegistry(); this.positionDoubleClickedEvent = new MockPositionDoubleClickedEvent(); this.refreshElementsEvent = new MockRefreshElementsEvent(); this.addPreviewEvent = new MockAddPreviewEvent(); this.eventAggregator.AddMapping <PositionDoubleClickedEvent>(this.positionDoubleClickedEvent); this.eventAggregator.AddMapping <RefreshElementsEvent>(this.refreshElementsEvent); this.eventAggregator.AddMapping <AddPreviewEvent>(this.addPreviewEvent); }
public void SetUp() { this.view = new MockCommentsBarView(); this.eventAggregator = new MockEventAggregator(); this.sequenceModel = new MockSequenceModel(); this.timelineBarRegistry = new MockTimelineBarRegistry(); this.positionDoubleClickedEvent = new MockPositionDoubleClickedEvent(); this.refreshElementsEvent = new MockRefreshElementsEvent(); this.addPreviewEvent = new MockAddPreviewEvent(); this.deleteAllPreviewsEvent = new MockDeleteAllPreviewsEvent(); this.removePreviewEvent = new MockRemovePreviewEvent(); this.sequenceRegistry = new MockSequenceRegistry(); this.sequenceRegistry.CurrentSequenceModel = this.sequenceModel; this.eventAggregator.AddMapping <PositionDoubleClickedEvent>(this.positionDoubleClickedEvent); this.eventAggregator.AddMapping <RefreshElementsEvent>(this.refreshElementsEvent); this.eventAggregator.AddMapping <AddPreviewEvent>(this.addPreviewEvent); this.eventAggregator.AddMapping <DeleteAllPreviewsEvent>(this.deleteAllPreviewsEvent); this.eventAggregator.AddMapping <RemovePreviewEvent>(this.removePreviewEvent); }