public MovieListViewModel(ICommandSender commandSender, IMovieQueryFacade movieRepository) { _commandSender = commandSender; _movieRepository = movieRepository; _movies = new ObservableCollection <MovieViewModel>(); Refresh(); }
private static void OnMovieInserted(IMovieQueryFacade movieRepository) { Console.Clear(); Console.WriteLine("MOVIE INSERTED:"); movieRepository.GetAll().ToList().ForEach(Console.WriteLine); Console.WriteLine("press a <ENTER>..."); Console.ReadLine(); }
private static void OnTitleChanged(IMovieQueryFacade movieRepository) { Console.Clear(); Console.WriteLine("MOVIE TITLE CHANGED:"); movieRepository.GetAll().ToList().ForEach(Console.WriteLine); Console.WriteLine("press a <ENTER>..."); Console.ReadLine(); }
public MoviesController(IMovieQueryFacade movieQueryFacade, ICommandSender commandSender) { _movieQueryFacade = movieQueryFacade; _commandSender = commandSender; }