public void OpenMovieCopy(int movieId)
        {
            var movie = _context.MoviesOriginal.Single(m => m.Id == movieId);

            _movieCopyPresenter.Run(movie);

            var copies = _context.MoviesCopies.Where(c => c.MovieId == _mainView.CurrentMovieId);

            _mainView.RedrawCopies(copies);
        }
Beispiel #2
0
        public void Run()
        {
            //arrange
            var testMovie = new MovieOriginal("TEST", "TEST", 9999);

            //act
            _presenter.Run(testMovie);

            //asert
            Assert.AreEqual(testMovie.Title, _view.CurrentMovie.Title);
            Assert.AreEqual(testMovie.Description, _view.CurrentMovie.Description);
            Assert.AreEqual(testMovie.YearReleased, _view.CurrentMovie.YearReleased);

            _view.Received().Show();
        }