SetChaptersDefaultSettings() public method

public SetChaptersDefaultSettings ( ) : void
return void
 public void bluraytitleinfodefaultsettingsservice_can_mark_all_chapter_as_selected_as_default_Test()
 {
     //given
     ApplicationSettings applicationSettings = new ApplicationSettings() { BluRayTitleInfoDefaultSettings = new BluRayTitleInfoDefaultSettings() { SelectChapters = true} };
     BluRaySummaryInfo bluraySummaryInfo = new BluRaySummaryInfo() { BluRayTitleInfo = new BluRayTitleInfo() { Chapter = new BluRayTitleChapter() { IsSelected = false } } };
     BluRayTitleInfoDefaultSettings defaultSettings = new BluRayTitleInfoDefaultSettings() {  SelectChapters = true };
     IAudioService audioService = new AudioService();
     IBluRayTitleInfoDefaultSettingsService service = new BluRayTitleInfoDefaultSettingsService(applicationSettings, bluraySummaryInfo, audioService);
     //when
     service.SetChaptersDefaultSettings();
     //then
     bluraySummaryInfo.BluRayTitleInfo.Chapter.IsSelected.Should().BeTrue();
 }
Esempio n. 2
0
        private void SetBluRayTitleInfoDefaultSettings()
        {
            IBluRayTitleInfoDefaultSettingsService service = new BluRayTitleInfoDefaultSettingsService(Program.ApplicationSettings,
                _bluRaySummaryInfo, _audioService);

            service.SetSubtitleDefaultSettings();
            service.SetChaptersDefaultSettings();
            service.SetAudioDefaultSettings();
        }