示例#1
0
        public async Task Setup()
        {
            App.Current.GUIToolkit = mockGuiToolkit.Object;
            videoPlayerController  = new Mock <IVideoPlayerController> ();
            videoPlayerVM          = new VideoPlayerVM();
            videoPlayerVM.Player   = videoPlayerController.Object;
            LMProject project = Utils.CreateProject(true);

            project.ProjectType = ProjectType.FileProject;
            projectVM           = new LMProjectVM {
                Model = project
            };
            playlistCollectionVM = projectVM.Playlists;
            LMProjectAnalysisVM viewModel = new LMProjectAnalysisVM();

            viewModel.Project     = projectVM;
            viewModel.VideoPlayer = videoPlayerVM;
            sut = new LMPlaylistController();
            sut.SetViewModel(viewModel);
            await sut.Start();
        }
示例#2
0
        public void Setup()
        {
            mockDialogs            = new Mock <IDialogs> ();
            App.Current.GUIToolkit = mockGuiToolkit.Object;
            App.Current.Dialogs    = mockDialogs.Object;
            videoPlayerController  = new Mock <IVideoPlayerController> ();
            videoPlayerVM          = new VideoPlayerVM();
            videoPlayerVM.Player   = videoPlayerController.Object;
            LMProject project = Utils.CreateProject(true);

            project.ProjectType = ProjectType.FileProject;
            projectVM           = new LMProjectVM {
                Model = project
            };
            playlistCollectionVM = projectVM.Playlists;
            LMProjectAnalysisVM viewModel = new LMProjectAnalysisVM();

            viewModel.Project     = projectVM;
            viewModel.VideoPlayer = videoPlayerVM;
            controller            = new LMPlaylistController();
            controller.SetViewModel(viewModel);
            controller.Start();
        }