Ejemplo n.º 1
0
        public void ShowDetailViewsTest()
        {
            var view = Container.GetExportedValue <MockShellView>();

            Assert.IsTrue(view.IsVisible);

            var viewModel = Container.GetExportedValue <ShellViewModel>();

            Assert.IsFalse(viewModel.IsMusicPropertiesViewVisible);
            Assert.IsTrue(viewModel.IsPlaylistViewVisible);
            Assert.IsFalse(viewModel.IsTranscodingListViewVisible);


            shellService.ShowMusicPropertiesView();
            Assert.IsTrue(viewModel.IsMusicPropertiesViewVisible);
            Assert.IsFalse(viewModel.IsPlaylistViewVisible);
            Assert.IsFalse(viewModel.IsTranscodingListViewVisible);

            shellService.ShowTranscodingListView();
            Assert.IsFalse(viewModel.IsMusicPropertiesViewVisible);
            Assert.IsFalse(viewModel.IsPlaylistViewVisible);
            Assert.IsTrue(viewModel.IsTranscodingListViewVisible);

            shellService.ShowPlaylistView();
            Assert.IsFalse(viewModel.IsMusicPropertiesViewVisible);
            Assert.IsTrue(viewModel.IsPlaylistViewVisible);
            Assert.IsFalse(viewModel.IsTranscodingListViewVisible);
        }
Ejemplo n.º 2
0
 private void ShowMusicProperties()
 {
     musicPropertiesService.SelectMusicFiles(new[] { PlaylistManager.CurrentItem?.MusicFile }.Where(x => x != null).ToArray());
     shellService.ShowMusicPropertiesView();
 }
 private void ShowMusicProperties()
 {
     musicPropertiesService.SelectMusicFiles(PlaylistViewModel.SelectedPlaylistItems.Select(x => x.MusicFile).ToArray());
     shellService.ShowMusicPropertiesView();
 }
Ejemplo n.º 4
0
 private void ShowMusicProperties()
 {
     shellService.ShowMusicPropertiesView();
 }