public MovieListViewModel(ICommandSender commandSender, IMovieQueryFacade movieRepository)
 {
     _commandSender   = commandSender;
     _movieRepository = movieRepository;
     _movies          = new ObservableCollection <MovieViewModel>();
     Refresh();
 }
예제 #2
0
 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();
 }
예제 #3
0
 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;
 }