public void Setup() { mockGuiToolkit = new Mock<IGUIToolkit> (); App.Current.GUIToolkit = mockGuiToolkit.Object; App.Current.JobsManager = mockVideoRenderer.Object; mockDiaklogs = new Mock<IDialogs> (); App.Current.Dialogs = mockDiaklogs.Object; plmanager = new PlaylistManager (); plmanager.Start (); plmanager.Player = mockPlayerController.Object; OpenProject (new ProjectLongoMatch ()); playlistElementLoaded = false; et = App.Current.EventsBroker.Subscribe<PlaylistElementLoadedEvent> ((e) => playlistElementLoaded = true); }