示例#1
0
        public ViewModelLocator()
        {
            if (IsInDesignMode)
            {
                MViewModel = new MoviesViewModel(new MockServiceAgent());
                MViewModel.SelMovieTitle = "Inception";

                MViewModel.GetMovieCommand.Execute(new SelectionChangedEventArgs(new List<GoogleSearchResult>(),
                                                                                 new List<GoogleSearchResult>
                                                                                     {
                                                                                         new GoogleSearchResult
                                                                                             {Url = "testurl"}
                                                                                     }));
                MViewModel.GetMovieUrlsCommand.Execute(null);
            }
        }