void StartControllers()
 {
     controller.SetViewModel(viewModel);
     teamTaggerController.SetViewModel(viewModel);
     controller.Start();
     teamTaggerController.Start();
 }
        public void SetUp()
        {
            controller           = new PlayEditorController();
            teamTaggerController = new LMTeamTaggerController();
            viewModel            = new PlayEditorVM();

            project           = Utils.CreateProject();
            viewModel.Project = new LMProjectVM {
                Model = project
            };
            var play = project.Timeline [0] as LMTimelineEvent;

            play.Players.Add(project.LocalTeamTemplate.List [0]);
            play.Teams.Add(project.LocalTeamTemplate);
            viewModel.Play = play;

            controller.SetViewModel(viewModel);
            teamTaggerController.SetViewModel(viewModel);
            controller.Start();
            teamTaggerController.Start();
        }
        public async Task Setup()
        {
            App.Current.HotkeysService = new HotkeysService();
            LMGeneralUIHotkeys.RegisterDefaultHotkeys();
            mockToolkit = new Mock <IGUIToolkit> ();
            mockToolkit.SetupGet(o => o.DeviceScaleFactor).Returns(1.0f);
            App.Current.GUIToolkit = mockToolkit.Object;

            VideoPlayerVM videoPlayer = new VideoPlayerVM {
                CamerasConfig = new RangeObservableCollection <CameraConfig> ()
            };

            LMProject project = Utils.CreateProject();

            projectVM = new LMProjectVM {
                Model = project
            };

            var projectAnalysisVM = new LMProjectAnalysisVM {
                VideoPlayer = videoPlayer, Project = projectVM
            };

            controller = new LMTaggingController();
            controller.SetViewModel(projectAnalysisVM);
            await controller.Start();

            teamController = new LMTeamTaggerController();
            teamController.SetViewModel(projectAnalysisVM);
            await teamController.Start();

            resetEvent = new AutoResetEvent(false);
            mockToolkit.Setup(x => x.Invoke(It.IsAny <EventHandler> ())).Callback((EventHandler e) => {
                Task actionExecution = Task.Factory.StartNew(() => e(null, null));
                actionExecution.Wait();
                resetEvent.Set();
            });
        }
 async Task ControllerSetUp(IViewModel viewModel)
 {
     controller = new LMTeamTaggerController();
     controller.SetViewModel(viewModel);
     await controller.Start();
 }
 void ControllerSetUp(IViewModel viewModel)
 {
     controller = new LMTeamTaggerController();
     controller.SetViewModel(viewModel);
     controller.Start();
 }