public void SetUp()
        {
            this.view           = new MockSettingsView();
            this.projectService = new MockProjectService();
            this.projectService.GetCurrentProjectReturnValue.AutoSaveInterval = 30;
            this.aspectRatioChangedEvent   = new MockAspectRatioChangedEvent();
            this.smpteTimeCodeChangedEvent = new MockSmtpeTimeCodeChangedEvent();
            this.startTimeCodeChangedEvent = new MockStartTimeCodeChangedEvent();
            this.editModeChangedEvent      = new MockEditModeChangedEvent();
            this.pickThumbnailEvent        = new MockPickThumbnailEvent();
            this.thumbnailEvent            = new MockThumbnailEvent();
            this.regionManager             = new MockRegionManager();
            this.toolsRegion = new MockRegion {
                Name = RegionNames.ToolsRegion
            };

            this.regionManager.Regions.Add(this.toolsRegion);

            this.eventAggregator = new MockEventAggregator();
            this.eventAggregator.AddMapping <AspectRatioChangedEvent>(this.aspectRatioChangedEvent);
            this.eventAggregator.AddMapping <SmpteTimeCodeChangedEvent>(this.smpteTimeCodeChangedEvent);
            this.eventAggregator.AddMapping <StartTimeCodeChangedEvent>(this.startTimeCodeChangedEvent);
            this.eventAggregator.AddMapping <EditModeChangedEvent>(this.editModeChangedEvent);
            this.eventAggregator.AddMapping <PickThumbnailEvent>(this.pickThumbnailEvent);
            this.eventAggregator.AddMapping <ThumbnailEvent>(this.thumbnailEvent);
        }
Пример #2
0
        public void SetUp()
        {
            this.view                 = new MockSettingsView();
            this.projectService       = new MockProjectService();
            this.configurationService = new MockConfigurationService();

            this.projectService.GetCurrentProjectReturnValue.AutoSaveInterval = 30;
            this.aspectRatioChangedEvent   = new MockAspectRatioChangedEvent();
            this.smpteTimeCodeChangedEvent = new MockSmtpeTimeCodeChangedEvent();
            this.startTimeCodeChangedEvent = new MockStartTimeCodeChangedEvent();
            this.editModeChangedEvent      = new MockEditModeChangedEvent();
            this.pickThumbnailEvent        = new MockPickThumbnailEvent();
            this.resetWindowsEvent         = new MockResetWindowsEvent();
            this.thumbnailEvent            = new MockThumbnailEvent();
            this.regionManager             = new MockRegionManager();
            this.mainRegion = new MockRegion {
                Name = RegionNames.MainRegion
            };
            this.userSettingsService = new MockUserSettingsService();
            this.persistenceService  = new MockPersistenceService();

            this.regionManager.Regions.Add(this.mainRegion);

            this.eventAggregator = new MockEventAggregator();
            this.eventAggregator.AddMapping <AspectRatioChangedEvent>(this.aspectRatioChangedEvent);
            this.eventAggregator.AddMapping <SmpteTimeCodeChangedEvent>(this.smpteTimeCodeChangedEvent);
            this.eventAggregator.AddMapping <StartTimeCodeChangedEvent>(this.startTimeCodeChangedEvent);
            this.eventAggregator.AddMapping <EditModeChangedEvent>(this.editModeChangedEvent);
            this.eventAggregator.AddMapping <PickThumbnailEvent>(this.pickThumbnailEvent);
            this.eventAggregator.AddMapping <ThumbnailEvent>(this.thumbnailEvent);
            this.eventAggregator.AddMapping <ResetWindowsEvent>(this.resetWindowsEvent);
        }